Add lazy invokeMap.

This commit is contained in:
John-David Dalton
2015-11-24 16:49:59 -08:00
parent 6dc92df880
commit 7bd986337a
2 changed files with 30 additions and 0 deletions

View File

@@ -14051,6 +14051,15 @@
return this.reverse().find(predicate);
};
LazyWrapper.prototype.invokeMap = rest(function(path, args) {
if (typeof path == 'function') {
return new LazyWrapper(this);
}
return this.map(function(value) {
return baseInvokePath(value, path, args);
});
});
LazyWrapper.prototype.reject = function(predicate) {
predicate = getIteratee(predicate, 3);
return this.filter(function(value) {