From fbd9a804a917a79047237b19008e27a35caf560b Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sat, 23 Jul 2016 20:52:15 -0700 Subject: [PATCH] Use `negate` in `reject`. --- lodash.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lodash.js b/lodash.js index d01da7dd9..e6ec3e2ba 100644 --- a/lodash.js +++ b/lodash.js @@ -9252,10 +9252,7 @@ */ function reject(collection, predicate) { var func = isArray(collection) ? arrayFilter : baseFilter; - predicate = getIteratee(predicate, 3); - return func(collection, function(value, index, collection) { - return !predicate(value, index, collection); - }); + return func(collection, negate(getIteratee(predicate, 3))); } /**