Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Comparator<T>

Type parameters

  • T

Hierarchy

  • Comparator

Index

Methods

Methods

compare

  • compare(o1: T, o2: T): number
  • Parameters

    • o1: T
    • o2: T

    Returns number

    a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.

Generated using TypeDoc