groupBy
groupBy<
A>(f): (data) =>Record<string,NonEmptyList<A>>
Defined in: Core/Arr.ts:172
Groups elements by a key function.
Type Parameters
Section titled “Type Parameters”A
Parameters
Section titled “Parameters”(a) => string
Returns
Section titled “Returns”(
data):Record<string,NonEmptyList<A>>
Parameters
Section titled “Parameters”readonly A[]
Returns
Section titled “Returns”Record<string, NonEmptyList<A>>