All you know that arguments
is a special object that holds all the arguments passed to the function.
And as long as it is not an array - you cannot use
From https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/arguments:
You should not slice on arguments because it prevents optimizations in JavaScript engines (V8 for example). Instead, try constructing a new array by iterating through the arguments object.
So Paul Rosiana's answer above is correct