argumentss apply()are accurate
When called applyfor a function, it is enough to use the original one arguments. SO in your example, you can easily replace the line with the following:
this.addSelectedClass.apply(this, arguments);
argumentsc call()are not accurate
call, arguments ( slice()), /. call() , , , .
arguments . (, length), .
Mozilla Deveveloper
,
, apply() call(), :
func.apply(thisArg[, argsArray]);
func.call(thisArg[, arg1[, arg2[, ...]]]);
.
, .