Type alias ICompare<T>

ICompare<T>: ((a, b) => number)

Compares two values.
If a comes before b, the result should be negative.
If both values are equal, the result should be zero.
If a comes after b, the result should be positive.

Type Parameters

  • T

Type declaration

    • (a, b): number
    • Parameters

      Returns number

Generated using TypeDoc