Function max2Any

  • Get a larger number from two possibly empty numbers. Returns None when both operands are None, otherwise returns the other (nonempty) operand.

    Parameters

    Returns ((b) => Opt<number>)

    Example

    max2Any(1)(2) // Some(2)
    max2Any(1)(null) // Some(1)
    max2Any(null)(undefined) // None

Generated using TypeDoc