Interface Compare

Type that implements a universal partial order.

Hierarchy

  • Compare

Methods

Methods

  • Returns the relative order of this with respect to that. Returns -1 if this orders before that; returns 1 if this orders after that; returns 0 if this and that are equivalent; and returns NaN if this is not comparable to that.

    Parameters

    • that: unknown

    Returns number

Generated using TypeDoc