The type of the values in the input object.
The object to reduce.
The function that handles the reduction logic.
The initial value of the accumulator.
The function that retrieves the keys of the object.
The final accumulated value.
const object = { a: 1, b: 2, c: 3 };
const callback = (accum, value, key) => accum + value;
const initialAccum = 0;
objReduce(object, callback, initialAccum);
//=> 6
Generated using TypeDoc
Reduces the values of an object into a single value.