2021-08-01 14:47:48 +00:00
|
|
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
|
|
|
|
[Home](./index.md) > [@apextoaster/js-utils](./js-utils.md) > [filterZip](./js-utils.filterzip.md)
|
|
|
|
|
|
|
|
## filterZip() function
|
|
|
|
|
2021-08-08 19:58:43 +00:00
|
|
|
Filter and zip some arrays. The `cb` is called for each slice, which is kept if `cb` returns true.
|
|
|
|
|
2021-08-01 14:47:48 +00:00
|
|
|
<b>Signature:</b>
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
export declare function filterZip<T1>(cb: (a: T1) => boolean, l1: Array<T1>): Array<T1>;
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --- | --- | --- |
|
|
|
|
| cb | (a: T1) => boolean | |
|
|
|
|
| l1 | Array<T1> | |
|
|
|
|
|
|
|
|
<b>Returns:</b>
|
|
|
|
|
|
|
|
Array<T1>
|
|
|
|
|