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