reduceWithKey
reduceWithKey<
K,A,B>(init,f): (m) =>B
Defined in: Utils/Dict.ts:428
Folds the dictionary into a single value by applying f to each key-value pair in insertion
order.
Type Parameters
Section titled “Type Parameters”K
A
B
Parameters
Section titled “Parameters”B
(acc, value, key) => B
Returns
Section titled “Returns”(
m):B
Parameters
Section titled “Parameters”ReadonlyMap<K, A>
Returns
Section titled “Returns”B