Type alias Comparator<T>

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

Type Parameters

Type Parameters

  • T

Type declaration

    • (a: T, b: T): number
    • A function that compares two values for sorting purposes.

      Parameters

      • a: T
      • b: T

      Returns number

Generated using TypeDoc