Type alias CompareFunction<T>

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

Type Parameters

  • T

Type declaration

    • (a, b): number
    • Handle comparison of two values.

      Parameters

      • a: T

        a value

      • b: T

        another value

      Returns number

      a<b: -ve, a=b: 0, a>b: +ve

Generated using TypeDoc