▸ Const
filter(arr
: any, cb
: ArrayCB): any
A fast Array filter.
#
Parameters:Name | Type | Description |
---|---|---|
arr | any | The input array-like to filter. |
cb | ArrayCB | The callback provided to produce truthy/falsy. This iteratee is invoked with three arguments: value, index|key, and arr. It should return false for items to exclude. |
Returns: any
typeof arr - The filtered results.
Defined in: unsafe/array/filter.ts:12