chain()
constchain: <A,B>(f) => (ma) =>Option<B> =flatMap
Alias for flatMap.
Chains a function that returns an Option over the value.
Type Parametersβ
A: Aβ
The input type.
B: Bβ
The output type.
Parametersβ
f: (a) => Option<B>β
The chaining function.
Returnsβ
A function that transforms the Option.
Sinceβ
2.0.0