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

    Example

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

    Type Parameters

    • L

      the left value type

    • R

      the right value type

    Parameters

    Returns R

Generated using TypeDoc