Type alias CompareFunction

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

Type declaration

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

      Parameters

      • a: string

        a string

      • b: string

        another string

      Returns number

      x<y: -ve, x=y: 0, x>y: +ve

Generated using TypeDoc