chainNullableK()
chainNullableK<
A,B>(f): (ma) =>Option<NonNullable<B>>
Chains a function that may return null/undefined.
Type Parametersβ
A: Aβ
The input type.
B: Bβ
The output type.
Parametersβ
f: (a) => Nullish<B>β
The chaining function.
Returnsβ
A function that chains the Option.
Sinceβ
2.0.0