JS arguments to array

2010-02-14 20:48:42

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