Documentation
Preparing search index...
@saltcorn/data
utils
comparing
Function comparing
comparing
(
f
:
string
|
(
(
o
:
any
)
=>
any
)
)
:
(
a
:
any
,
b
:
any
)
=>
-1
|
0
|
1
Compare objects (for Array.sort) by property name or function
Parameters
f
:
string
|
(
(
o
:
any
)
=>
any
)
Returns
(
a
:
any
,
b
:
any
)
=>
-1
|
0
|
1
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Documentation
Loading...
Compare objects (for Array.sort) by property name or function