reject_.reject(list, predicate, [context])
Returns the values in list without the elements that the truth test (predicate) passes. The opposite of filter.
1 2 | var odds = _.reject([1, 2, 3, 4, 5, 6], function (num){ return num % 2 == 0; }); => [1, 3, 5] |
Please login to continue.