how to Initialize a Javascript Array with non-zero index
<p>I'm passing an array to a function and I'm curious if there is a quick way to use the json style array initializer to pass an anonymous array:</p>

<p>e.g.: </p>

<pre><code>myfunction([1,2,3,4]);
</code></pre>

<p>Is there some special syntax in javascript that would allow one to initialize the array with non-zero index?</p>

<p>for example, instead of </p>

<pre><code>myfunction([,,,,4321]);

//array[4] == 4321 here
</code></pre>

<p>but if you have an array that has the first 100 positions undefined, you would have to have  100 commas.  [,,....,4321]</p>

<p>basically looking for a short form for: </p>

<pre><code>var a = new Array(); a[100] = 4321; 
</code></pre>

<p>that you can use as a function parameter.</p>
