getOrElse
getOrElse<
E,A,B>(defaultValue): (data) =>A|B
Defined in: Core/RemoteData.ts:224
Returns the success value or a default value if the RemoteData is not Success.
The default can be a different type, widening the result to A | B.
Type Parameters
Section titled “Type Parameters”E
A
B
Parameters
Section titled “Parameters”defaultValue
Section titled “defaultValue”() => B
Returns
Section titled “Returns”(
data):A|B
Parameters
Section titled “Parameters”RemoteData<E, A>
Returns
Section titled “Returns”A | B