Posted By

remysharp on 07/22/07


Tagged

array arguments


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

korzhik
wizard04
ionutzp


Arguments to array


 / Published in: JavaScript
 

Coverts the argument object to an array - to allow you to iterate and make use of the Array prototypal methods.

  1. var args = Array.prototype.slice.apply(arguments);

Report this snippet  

You need to login to post a comment.