getOrElse()
getOrElse<
E,A>(onLeft): (ma) =>A
Extracts the value from a Right or applies a function to the Left.
Type Parametersβ
E: Eβ
The error type.
A: Aβ
The success type.
Parametersβ
onLeft: (e) => Aβ
Handler for Left case.
Returnsβ
A function that takes an Either and returns A.
Sinceβ
2.0.0