toMaybe
toMaybe<
E,A>(data):Maybe<A>
Defined in: Core/Result.ts:201
Converts a Result to an Maybe. Ok becomes Some, Err becomes None (the error is discarded).
Type Parameters
Section titled “Type Parameters”E
A
Parameters
Section titled “Parameters”Result<E, A>
Returns
Section titled “Returns”Maybe<A>