fromNullable
fromNullable<
A>(value):Option<A>
Defined in: Core/Option.ts:66
Creates a Option 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”Option<A>