Function min2Any

  • Get a lesser 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

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

Generated using TypeDoc