@eagleoutice/flowr - v2.15.8
Preparing search index...
src/util/collections/arrays
arraysGroupBy
Function arraysGroupBy
arraysGroupBy
<
T
,
K
>
(
arr
:
readonly
T
[]
,
keyFn
:
(
elem
:
T
)
=>
K
)
:
Map
<
K
,
T
[]
>
Groups the elements of the given array by the key returned by the given key function.
Type Parameters
T
K
Parameters
arr
:
readonly
T
[]
keyFn
:
(
elem
:
T
)
=>
K
Returns
Map
<
K
,
T
[]
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@eagleoutice/flowr - v2.15.8
Loading...
Groups the elements of the given array by the key returned by the given key function.