Javascript quick array declaration

Posted by portoalet on Stack Overflow See other posts from Stack Overflow or by portoalet
Published on 2010-04-10T04:34:39Z Indexed on 2010/04/10 4:43 UTC
Read the original article Hit count: 368

Filed under:
|
|

Is there a Javascript equivalen of Perl's qw() method to quickly create arrays ? i.e.

in Perl @myarray = qw / one two three /;
in Javascript var myarray = ('one', 'two', 'three' );  // any alternative??

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about perl