▸ filterRight(arr
: ArrayLike, cb
: ArrayCB): typeof arr
A fast Array filter.
remarks
This implementation loops in reverse order.
#
Parameters:Name | Type | Description |
---|---|---|
arr | ArrayLike | 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: typeof arr
typeof arr - The filtered results.
Defined in: unsafe/array/filterRight.ts:16