mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 09:47:48 +00:00
Remove unused case in apply.
This commit is contained in:
@@ -384,7 +384,6 @@
|
|||||||
*/
|
*/
|
||||||
function apply(func, thisArg, args) {
|
function apply(func, thisArg, args) {
|
||||||
switch (args.length) {
|
switch (args.length) {
|
||||||
case 0: return func.call(thisArg);
|
|
||||||
case 1: return func.call(thisArg, args[0]);
|
case 1: return func.call(thisArg, args[0]);
|
||||||
case 2: return func.call(thisArg, args[0], args[1]);
|
case 2: return func.call(thisArg, args[0], args[1]);
|
||||||
case 3: return func.call(thisArg, args[0], args[1], args[2]);
|
case 3: return func.call(thisArg, args[0], args[1], args[2]);
|
||||||
|
|||||||
Reference in New Issue
Block a user