docs/polyethylene.asyncindexedreducer.md
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [polyethylene](./polyethylene.md) > [AsyncIndexedReducer](./polyethylene.asyncindexedreducer.md)
## 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.
<b>Signature:</b>
```typescript
export declare type AsyncIndexedReducer<T, U> = (acc: U, item: T, index: number) => U | PromiseLike<U>;
```