docs/polyethylene.chunkingpredicate.md
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [polyethylene](./polyethylene.md) > [ChunkingPredicate](./polyethylene.chunkingpredicate.md)
## ChunkingPredicate type
A function that receives an element (`elem`<!-- -->) of the iteration and the first and last element of a chunk, and returns a boolean value representing whether `elem` should be added to the current chunk (if `true`<!-- -->) or be the start of a new chunk (if `false`<!-- -->)
<b>Signature:</b>
```typescript
export declare type ChunkingPredicate<T> = (elem: T, lastElem: T, firstElem: T) => boolean;
```