docs/polyethylene.asyncindexedpredicate.md
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [polyethylene](./polyethylene.md) > [AsyncIndexedPredicate](./polyethylene.asyncindexedpredicate.md)
## AsyncIndexedPredicate type
A function that receives an object (`elem`<!-- -->) and its `index` in the iteration and returns a `boolean` value or a `Promise` to a `boolean` value.
<b>Signature:</b>
```typescript
export declare type AsyncIndexedPredicate<T> = (elem: T, index: number) => boolean | PromiseLike<boolean>;
```