fromNullable
fromNullable<
E>(onNull): <A>(value) =>Result<E,A>
Defined in: Core/Result.ts:215
Creates a Result from a nullable value. Returns Ok if the value is not null or undefined, error from onNull otherwise.
Type Parameters
Section titled “Type Parameters”E
Parameters
Section titled “Parameters”onNull
Section titled “onNull”() => E
Returns
Section titled “Returns”<A>(value) => Result<E, A>