reduce
reduce: (
reducer,initialValue?) =>Function
Defined in: utils/iterables/reduce.js:22
Parameters
Section titled “Parameters”reducer
Section titled “reducer”Function
Reducer (accumulator, value, index, iterable) => newAccumulator
initialValue?
Section titled “initialValue?”any
Initial accumulator value; first element used if omitted
Returns
Section titled “Returns”Function
- Function
(iterable) => accumulated value