Best way to deallocate an array of array in javascript
<p>What is the best way to deallocate an array of array in javascript to make sure no memory leaks will happen?</p>

<pre><code>var foo = new Array();
foo[0] = new Array();
foo[0][0] = 'bar0';
foo[0][1] = 'bar1';
foo[1] = new Array();
...
</code></pre>

<ol>
<li>delete(foo)?</li>
<li>iterate through foo, delete(foo[index]) and delete(foo)?</li>
<li>1 and 2 give me the same result?</li>
<li>none?</li>
</ol>
