Class Comparator
Constructors
constructor
-
Parameters
Properties
compare
Methods
equal
- equal(a: any, b: any): boolean
-
Parameters
Returns boolean
greaterThan
- greaterThan(a: any, b: any): boolean
-
Parameters
Returns boolean
greaterThanOrEqual
- greaterThanOrEqual(a: any, b: any): boolean
-
Parameters
Returns boolean
lessThan
- lessThan(a: any, b: any): boolean
-
Parameters
Returns boolean
lessThanOrEqual
- lessThanOrEqual(a: any, b: any): boolean
-
Parameters
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"