Preparing search index...
The search index is not available
Welshman Docs
Welshman Docs
@welshman/lib
groupBy
Function groupBy
Groups array elements by key function
groupBy
<
T
,
K
>
(
f
:
(
x
:
T
)
=>
K
,
xs
:
T
[]
)
:
Map
<
K
,
T
[]
>
Type Parameters
T
K
Parameters
f
:
(
x
:
T
)
=>
K
Function to generate group key
xs
:
T
[]
Array to group
Returns
Map
<
K
,
T
[]
>
Map of groups
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Welshman Docs
Loading...
Groups array elements by key function