I'm sure this is extremely simple but I can't find a way to do it.
function([5, 4, 6,],1, 2, 3);
There's an array, and then there are things outside of the array, but I don't know how are these outside things called or manipulated?
So how do i select all the elements outside of the first array?
Thanks and sorry for a dumb question.
Edit, here's the whole function because i can't seem to explain it well.
function destroyer(arr) {
// Remove all the values
return arr;
}
destroyer([1, 2, "asd", 1, 2, 3], "kk", 3);
EDIT2; here is the solution to the problem of selecting arguments:
The arguments object is not an Array. It is similar to an Array, but does not have any Array properties except length. For example, it does not have the pop method. However it can be converted to a real Array:
var args = Array.prototype.slice.call(arguments,1)
This selects everything besides the first argument.