From 5ca13098e311279160cfef8fd3d6e99e75fdd7d3 Mon Sep 17 00:00:00 2001 From: Graeme Date: Thu, 12 Feb 2015 21:34:05 -0500 Subject: [PATCH] Use predicate instead of iteratee. --- lodash.src.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lodash.src.js b/lodash.src.js index b3bba39e4..e4edf2721 100644 --- a/lodash.src.js +++ b/lodash.src.js @@ -11326,18 +11326,18 @@ return this.filter(identity); }; - LazyWrapper.prototype.dropWhile = function(iteratee, thisArg) { + LazyWrapper.prototype.dropWhile = function(predicate, thisArg) { var done; - iteratee = getCallback(iteratee, thisArg, 3); + predicate = getCallback(predicate, thisArg, 3); return this.filter(function(value, index, array) { - return done || (done = !iteratee(value, index, array)); + return done || (done = !predicate(value, index, array)); }); }; - LazyWrapper.prototype.reject = function(iteratee, thisArg) { - iteratee = getCallback(iteratee, thisArg, 3); + LazyWrapper.prototype.reject = function(predicate, thisArg) { + predicate = getCallback(predicate, thisArg, 3); return this.filter(function(value, index, array) { - return !iteratee(value, index, array); + return !predicate(value, index, array); }); };