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;
return rest(function(args) {
var index = -1,
length = nativeMin(args.length, funcsLength),
newArgs = copyArray(args);
length = nativeMin(args.length, funcsLength);
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);
});
});