Preparing search index...
The search index is not available
Algomatic - v4.0.0
Algomatic
Comparator
Type Alias Comparator<T>
Comparator
<
T
>
:
(
(
a
:
T
,
b
:
T
)
=>
number
)
Compares
a
and
b
and returns:
A negative number if
a
<
b
;
A positive number if
a
>
b
;
0 if
a
is equal to
b
.
Type Parameters
T
Compared values.
Type declaration
(
a
,
b
)
:
number
Parameters
a
:
T
The first value.
b
:
T
The second value.
Returns
number
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Algomatic - v4.0.0
Loading...
Compares
a
andb
and returns:a
<b
;a
>b
;a
is equal tob
.