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