mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 07:17:50 +00:00
Remove switch statement from baseRest.
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user