From 2c5c4bfbea68611eaec87d55fc35666d162ec0b3 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Fri, 22 Jul 2016 20:39:12 -0700 Subject: [PATCH] Remove switch statement from `baseRest`. --- lodash.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lodash.js b/lodash.js index a7bf85c13..bbcd13ef6 100644 --- a/lodash.js +++ b/lodash.js @@ -3674,11 +3674,6 @@ array[index] = args[start + index]; } index = -1; - switch (start) { - case 0: return func.call(this, array); - case 1: return func.call(this, args[0], array); - case 2: return func.call(this, args[0], args[1], array); - } var otherArgs = Array(start + 1); while (++index < start) { otherArgs[index] = args[index];