All you know is that arguments is a special object that contains all the arguments passed to the function.
And while this is not an array - you cannot use something like arguments.slice(1) .
So the question is how to cut everything except the first element from arguments ?
UPD
there seems to be no way without converting it to an array with
var args = Array.prototype.slice.call(arguments);
If someone publishes another solution, it would be great if it werenโt - I would check the first one with the above line as an answer.
javascript
zerkms Mar 01 2018-12-12T00: 00Z
source share