Comparison<T>: ((a, y) => number)

Type Parameters

  • T

Type declaration

    • (a, y): number
    • Represents a comparision between two items of the same type. Should return 0 if they are the same, >0 if a > b, <0 if a < b.

      Parameters

      • a: T
      • y: T

      Returns number

Generated using TypeDoc