How to create 2d array from two 1d arrays
<p>I would like to ask you if there is any function in js/jquery that creates 2d array from two 1d arrays.<br>
I know that i can do it manually like:</p>

<pre><code>    var output = new Array(table1.length);    
    for(var i=0; i&lt;table1.length; i++)
    {
       output[i] = new Array(2)
       output[i][0] = table1[i]
       output[i][1] = table2[i]
    }
</code></pre>

<p>But maybe there is any function which does it for me ?</p>
