Skip to main content

orElse()

const orElse: <A>(that) => (fa) => Option<A> = alt

Alias for alt.

Returns an alternative Option if the first is None.


Type Parametersโ€‹

A: Aโ€‹

The value type.


Parametersโ€‹

that: () => Option<A>โ€‹

Function to provide alternative Option.


Returnsโ€‹

A function that returns the alternative.


Sinceโ€‹

2.0.0