[Home](./index.md) > [@apextoaster/js-utils](./js-utils.md) > [filterZip](./js-utils.filterzip.md)
## filterZip() function
Filter and zip some arrays. The `cb` is called for each slice, which is kept if `cb` returns true.
Signature:
```typescript
export declare function filterZip(cb: (a: T1) => boolean, l1: Array): Array;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| cb | (a: T1) => boolean | |
| l1 | Array<T1> | |
Returns:
Array<T1>