• Tries to unwrap the left value or uses the default value or lazy function to produce the correct result.

    Example

      unleftOr(right(1), 2) // -> 2
    unleftOr(left(NaN), 2) // -> NaN

    Type Parameters

    • L

      the left value type

    • R

      the right value type

    Parameters

    Returns L

Generated using TypeDoc