toOption
toOption<
E,A>(data):Option<A>
Defined in: Core/Result.ts:207
Converts a Result to an Option. 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”Option<A>