- group<TObject, TKeys>(iterable, ...keys): NestedInternMap<TObject, TObject[], TKeys>
Type Parameters
TObject
TKeys extends unknown[]
Parameters
iterable: Iterable<TObject>
Rest
...keys: {
[Index in string | number | symbol]: ((value, index, values) => TKeys[Index])
}
Returns NestedInternMap<TObject, TObject[], TKeys>
Groups the specified iterable of values into an InternMap from key to array of value.