diff --git a/lodash.js b/lodash.js index 973defedc..3019d57e6 100644 --- a/lodash.js +++ b/lodash.js @@ -10819,12 +10819,15 @@ 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); } - arrayPush(otherArgs, castSlice(args, start + 1)); + if (start != lastIndex) { + arrayPush(otherArgs, castSlice(args, start + 1)); + } return apply(func, this, otherArgs); }); }