Preparing search index...
The search index is not available
Welshman Docs
Welshman Docs
@welshman/lib
sortBy
Function sortBy
Returns array sorted by key function
sortBy
<
T
>
(
f
:
(
x
:
T
)
=>
any
,
xs
:
T
[]
)
:
T
[]
Type Parameters
T
Parameters
f
:
(
x
:
T
)
=>
any
Function to generate sort key
xs
:
T
[]
Array to sort
Returns
T
[]
Sorted array
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Welshman Docs
Loading...
Returns array sorted by key function