chain
chain<
A,B>(f): (data) =>Option<B>
Defined in: Core/Option.ts:147
Chains Option computations. If the first is Some, passes the value to f. If the first is None, propagates None.
Type Parameters
Section titled “Type Parameters”A
B
Parameters
Section titled “Parameters”(a) => Option<B>
Returns
Section titled “Returns”(
data):Option<B>
Parameters
Section titled “Parameters”Option<A>
Returns
Section titled “Returns”Option<B>