Simplify _.overArgs.

This commit is contained in:
John-David Dalton
2015-12-09 01:37:34 -08:00
parent 095cf94c45
commit c96a579291

View File

@@ -8733,13 +8733,12 @@
var funcsLength = transforms.length; var funcsLength = transforms.length;
return rest(function(args) { return rest(function(args) {
var index = -1, var index = -1,
length = nativeMin(args.length, funcsLength), length = nativeMin(args.length, funcsLength);
newArgs = copyArray(args);
while (++index < length) { while (++index < length) {
newArgs[index] = transforms[index].call(this, args[index]); args[index] = transforms[index].call(this, args[index]);
} }
return apply(func, this, newArgs); return apply(func, this, args);
}); });
}); });