Preparing search index...
The search index is not available
comparing - v1.3.1
comparing - v1.3.1
Comparator
Type alias Comparator<T>
Comparator
<
T
>
:
(
(
a
:
T
, b
:
T
)
=>
number
)
Type Parameters
Type Parameters
T
Type declaration
(
a
:
T
, b
:
T
)
:
number
A function that compares two values for sorting purposes.
Parameters
a:
T
b:
T
Returns
number
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
comparing -
v1.3.1
Comparable
Comparator
With
Predicate
Factory
Comparator
by
Length
by
Size
comparables
comparator
For
Order
comparator
With
Predicate
compare
By
compose
Comparators
ignore
Case
locale
Compare
natural
Order
nullish
First
nullish
Last
reverse
Comparator
reversed
Order
true
First
true
Last
unchanged
Generated using
TypeDoc
A function that compares two values for sorting purposes.