Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 591 Bytes

polyethylene.asyncindexedreducer.md

File metadata and controls

13 lines (8 loc) · 591 Bytes

Home > polyethylene > AsyncIndexedReducer

AsyncIndexedReducer type

A function that receives an accumulated result, an element of an iteration, and returns a new accumulated result or a promise to a new accumulated result for the next call or as a final return value.

Signature:

export declare type AsyncIndexedReducer<T, U> = (acc: U, item: T, index: number) => U | PromiseLike<U>;