Skip to main content

filterRight(arr: ArrayLike, cb: ArrayCB): typeof arr

A fast Array filter.

remarks

This implementation loops in reverse order.

Parameters:#

NameTypeDescription
arrArrayLikeThe 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: typeof arr

typeof arr - The filtered results.

Defined in: unsafe/array/filterRight.ts:16