I've just learned the convention for popping off the first element of the arguments array (which I also learned is actually an Object). Now I need to do the opposite. I need to use an unshift operation to add a value to the beginning of the arguments array (or Object acting like an array). Is this possible? I tried:
Array.prototype.unshift.apply('hello', arguments);
That had no effect on arguments whatsoever.
argumentscollection. You can modify the argument values, but not the length of the collection etc.undefined, but updating the length of theargumentsobject won't do that. I should have worded my comment more clearly.