reject
Filters an array's values based on a predicate function, returning only values for which the predicate function returns false.
- Use
Array.prototype.filter()in combination with the predicate function,pred, to return only the values for which it returnsfalse.