Darkhogg/polyethylene

View on GitHub
docs/polyethylene.indexedreducer.md

Summary

Maintainability
Test Coverage
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [polyethylene](./polyethylene.md) &gt; [IndexedReducer](./polyethylene.indexedreducer.md)

## IndexedReducer type

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

<b>Signature:</b>

```typescript
export declare type IndexedReducer<T, U> = (acc: U, item: T, index: number) => U;
```