JS arguments to array

2010-02-14

Why do I keep forgetting this... :/
Convert the arguments object to a proper array.

Code: (JS)

Array.prototype.slice.call(arguments);


Hope it helps you... and hope I can remember this some day :p