Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Comparator<T>

Type parameters

  • T

Hierarchy

  • Comparator

Callable

  • __call(a: T, b: T): number

Index

Methods

reversed

then

  • Parameters

    • compare: function
        • (a: T, b: T): number
        • Parameters

          • a: T
          • b: T

          Returns number

    Returns Comparator<T>

thenBy

thenByDescending

  • thenByDescending(selector: function): Comparator<T>

thenDescending

  • thenDescending(compare: function): Comparator<T>
  • Parameters

    • compare: function
        • (a: T, b: T): number
        • Parameters

          • a: T
          • b: T

          Returns number

    Returns Comparator<T>