Building an array with indefinite dimensions
<p>I wish to build an array of arrays with indefinite number of dimensions.</p>

<p>How could I:</p>

<ul>
<li>Get the number of dimensions of the parent array</li>
<li>Cycle through the outermost dimension elements</li>
</ul>

<p>I know this might be a stupid question but I am a newbie in javascript so please guide me.</p>

<p>[Edit]</p>

<p>The project that I'm working on is something that will generate html code (to be used in a certain application). I will ask the user to input rows and columns( columns are nested under each other according to order ). </p>

<p>example:</p>

<pre><code>Rows = a,b,c
col1 = q,w,e
col2 = 1,2,3

It would generate a table like this:
| rows |  q  |  w  |  e  |
|      |1|2|3|1|2|3|1|2|3|
|  a   |x|x|x|x|x|x|x|x|x|
|  b   |x|x|x|x|x|x|x|x|x|
|  c   |x|x|x|x|x|x|x|x|x|
</code></pre>

<p>But some custom functions are being asked (like merged cells, hiding a column, etc..) so I plan to make a nested array that will hold the columns.</p>
