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