getOrElse
getOrElse<
E,A,B>(defaultValue): (data) =>Task<A|B>
Defined in: Core/TaskResult.ts:123
Returns the success value or a default value if the TaskResult is an error.
The default can be a different type, widening the result to Task<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) => Task<A | B>