Bump to v4.17.0.

This commit is contained in:
John-David Dalton
2016-11-13 22:50:13 -08:00
parent 39e6c50f72
commit 9849321273
64 changed files with 743 additions and 593 deletions

View File

@@ -51,11 +51,15 @@ function spread(func, start) {
start = start === undefined ? 0 : nativeMax(toInteger(start), 0);
return baseRest(function(args) {
var array = args[start],
lastIndex = args.length - 1,
otherArgs = castSlice(args, 0, start);
if (array) {
arrayPush(otherArgs, array);
}
if (start != lastIndex) {
arrayPush(otherArgs, castSlice(args, start + 1));
}
return apply(func, this, otherArgs);
});
}