Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Comparator

Hierarchy

  • Comparator

Constructors

constructor

Properties

compare

compare: comparatorFn

Methods

equal

  • equal(a: any, b: any): boolean
  • Parameters

    • a: any
    • b: any

    Returns boolean

greaterThan

  • greaterThan(a: any, b: any): boolean
  • Parameters

    • a: any
    • b: any

    Returns boolean

greaterThanOrEqual

  • greaterThanOrEqual(a: any, b: any): boolean
  • Parameters

    • a: any
    • b: any

    Returns boolean

lessThan

  • lessThan(a: any, b: any): boolean
  • Parameters

    • a: any
    • b: any

    Returns boolean

lessThanOrEqual

  • lessThanOrEqual(a: any, b: any): boolean
  • Parameters

    • a: any
    • b: any

    Returns boolean

Static defaultComparator

  • defaultComparator(a: string | number, b: string | number): 0 | "1" | "-1"
  • Parameters

    • a: string | number
    • b: string | number

    Returns 0 | "1" | "-1"