mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 08:37:49 +00:00
Bump to v4.17.0.
This commit is contained in:
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user