getOrElse
getOrElse<
E,A,B>(defaultValue): (outcome) =>A|B
Defined in: Core/Op.ts:604
Returns the success value, or the result of defaultValue() for Err or Nil.
Type Parameters
Section titled “Type Parameters”E
A
B
Parameters
Section titled “Parameters”defaultValue
Section titled “defaultValue”() => B
Returns
Section titled “Returns”(
outcome):A|B
Parameters
Section titled “Parameters”outcome
Section titled “outcome”Outcome<E, A>
Returns
Section titled “Returns”A | B