Reduces values from source sequentially using reducer and returns the final accumulator after cleanup.
source
reducer
initial is awaited before opening source. If source is empty, the resolved initial value is returned. Object accumulators are passed by reference.
initial
Reduces values from
sourcesequentially usingreducerand returns the final accumulator after cleanup.initialis awaited before openingsource. Ifsourceis empty, the resolved initial value is returned. Object accumulators are passed by reference.