Function compare

  • Compare two ranges.

    This function is useful for sorting arrays of Comparable objects.

    Type Parameters

    Parameters

    • l: undefined | T

      the left value

    • r: undefined | T

      the right value

    Returns number

    -1, 0, or 1 if l is less than, equal to, or greater than r

Generated using TypeDoc