Skip to main content

Constfilter(arr: any, cb: ArrayCB): any

A fast Array filter.

Parameters:#

NameTypeDescription
arranyThe input array-like to filter.
cbArrayCBThe 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

Last updated on