From fec940ab8b2a9d4cfded97e4e6334a51246d7bfa Mon Sep 17 00:00:00 2001 From: Justin Ridgewell Date: Sun, 15 Mar 2015 13:06:57 -0400 Subject: [PATCH] Allocate proper size in in `_.restParam`. Since we're putting `rest` at `start` index, `array.length; // => {start + 1}` --- lodash.src.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lodash.src.js b/lodash.src.js index 0dc51b8b0..aadc1427b 100644 --- a/lodash.src.js +++ b/lodash.src.js @@ -7969,7 +7969,7 @@ case 1: return func.call(this, args[0], rest); case 2: return func.call(this, args[0], args[1], rest); } - var otherArgs = Array(start); + var otherArgs = Array(start + 1); index = -1; while (++index < start) { otherArgs[index] = args[index];