Type alias CompareFunction

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

Type declaration

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

      Parameters

      • a: any

        a value

      • b: any

        another value

      Returns number

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

Generated using TypeDoc