Similar to Array.reduce, but works on async iterables and the accumulator can return a Promise.
The iterable or async 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 accumulated result.
Similar to Array.reduce, but works on async iterables and the accumulator can return a Promise.
The iterable or async 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 async iterables and the accumulator can return a Promise.
Param: values
The iterable or async 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.