Reducer callback used by iterator helpers.
const sum: ReduceCallback<number, number, number> = (total, value) => total + value; Copy
const sum: ReduceCallback<number, number, number> = (total, value) => total + value;
Iterated value type.
Iterated key type.
Accumulator type.
Reduces one iterated value into the accumulator.
Previous accumulator value.
Current value.
Current key.
Zero-based iteration index.
Total number of values in the traversal.
Next accumulator value.
Reducer callback used by iterator helpers.
Example