Function fromNumber

  • Construct an Ordering from a number or a big integer.

    Parameters

    • num: number | bigint

    Returns Ordering

    Remarks

    • If n < 0, return Less.
    • If n > 0, return Greater.
    • If n === 0, return Equal.

    An argument must never be NaN. This is the caller's responsibility to enforce!

Generated using TypeDoc