Similar to Array.reduce, but works on any iterable.
The iterable to be reduced.
A callback to be called for each value. If it returns null or undefined, the previous result will be kept.
The initial value.
The accumulated result.
Similar to Array.reduce, but works on any iterable.
Param: values
The iterable to be reduced.
Param: accumulator
A callback to be called for each value. If it returns null or undefined, the previous result will be kept.
Param: init
The initial value.
Returns
The accumulated result.