toOption
toOption<
E,A>(data):Option<A>
Defined in: Core/RemoteData.ts:259
Converts a RemoteData to an Option. Success becomes Some, all other states become None.
Type Parameters
Section titled “Type Parameters”E
A
Parameters
Section titled “Parameters”RemoteData<E, A>
Returns
Section titled “Returns”Option<A>