Function DefaultComparatorFunction

  • Default comparator function used by SortedArray instances, when no other function was provided.

    The default comparator function returns -1 when a < b, +1 when a > b, and 0 otherwise.

    Parameters

    • a: unknown
    • b: unknown

    Returns number

Generated using TypeDoc