fromNullable()
fromNullable<
E>(e): <A>(a) =>Either<E,NonNullable<A>>
Creates an Either from a nullable value.
Type Parametersโ
E: Eโ
The error type.
Parametersโ
e: Eโ
The error value for null/undefined.
Returns: <A>(a): Either<E, NonNullable<A>>โ
A function that creates an Either from a nullable value.
Sinceโ
2.0.0