fromNullable
fromNullable<
A>(value):Maybe<A>
Defined in: Core/Maybe.ts:58
Creates a Maybe from a nullable value. Returns None if the value is null or undefined, Some otherwise.
Type Parameters
Section titled “Type Parameters”A
Parameters
Section titled “Parameters”A | null | undefined
Returns
Section titled “Returns”Maybe<A>