References
default
Renames and re-exports filterFunctions
filter
- filter<T>(fn: ArrPred<T>, arr: ArrayLike<T>): T[]
- filter<T>(fn: ArrPred<T>): (arr: ArrayLike<T>) => T[]
Type parameters
Parameters
Returns T[]
Type parameters
Parameters
Returns (arr: ArrayLike<T>) => T[]
Takes a predicate and a "arr", and returns a new array of the same type containing the members of the given arr which satisfy the given predicate.