Reduce for iterables
reduce([1, 2, 3], (acc, cur) => acc + cur, 0);// Yields: 6 Copy
reduce([1, 2, 3], (acc, cur) => acc + cur, 0);// Yields: 6
Iterable
Function
Start value
Reduce for iterables
Param: it
Iterable
Param: f
Function
Param: start
Start value
Returns