match
match<
A,B>(cases): (data) =>B
Defined in: Core/Option.ts:182
Pattern matches on a Option, returning the result of the matching case.
Type Parameters
Section titled “Type Parameters”A
B
Parameters
Section titled “Parameters”() => B
(a) => B
Returns
Section titled “Returns”(
data):B
Parameters
Section titled “Parameters”Option<A>
Returns
Section titled “Returns”B