Reducer function such as Array.reduce but accepting an iterable.
Optional
// Returns 6it.reduce([1, 2, 3], (num, acc) => num + acc) Copy
// Returns 6it.reduce([1, 2, 3], (num, acc) => num + acc)
// Returns 7it.reduce([1, 2, 3], (num, acc) => num + acc, 1) Copy
// Returns 7it.reduce([1, 2, 3], (num, acc) => num + acc, 1)
Reducer function such as Array.reduce but accepting an iterable.