- flatGroup<TObject, TKeys>(iterable, ...keys): [...TKeys, TObject[]][]
Type Parameters
TObject
TKeys extends unknown[]
Parameters
iterable: Iterable<TObject>
Rest
...keys: {
[Index in string | number | symbol]: ((value, index, values) => TKeys[Index])
}
Returns [...TKeys, TObject[]][]
Equivalent to group, but returns a flat array of [key0, key1, …, values] instead of nested maps.