An Ordering that indicates a "less than" comparison result.

Hierarchy

Properties

kind: LESS = Kind.LESS

The property that discriminates Ordering.

singleton: Less = ...

The singleton instance of Less.`

Remarks

The less constant is a more accessible alias for this object.

Methods

  • Compare this and that Ordering to determine their ordering.

    Parameters

    Returns Ordering

    Remarks

    When ordered, Less compares as less than Equal which compares as less than Greater.

  • Compare this and that Ordering to determine their equality.

    Parameters

    Returns boolean

    Remarks

    Two Ordering are equal if they are the same variant.

  • Convert this Ordering to a number.

    Parameters

    Returns 0 | 1 | -1

    Remarks

    • If this is Less, return -1.
    • If this is Greater, return 1.
    • If this is Equal, return 0.

Generated using TypeDoc