Skip to main content

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