mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 09:47:48 +00:00
Remove switch statement from baseRest.
This commit is contained in:
@@ -3674,11 +3674,6 @@
|
|||||||
array[index] = args[start + index];
|
array[index] = args[start + index];
|
||||||
}
|
}
|
||||||
index = -1;
|
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);
|
var otherArgs = Array(start + 1);
|
||||||
while (++index < start) {
|
while (++index < start) {
|
||||||
otherArgs[index] = args[index];
|
otherArgs[index] = args[index];
|
||||||
|
|||||||
Reference in New Issue
Block a user