How to dispose a very big array in js
<p>I have an array of thousands of simple objects, and I want to dispose it.</p>

<p>example:</p>

<pre><code>var array = [
   {name:"1"}, {name:"2"}, ..., {name:"32,000"}
]
</code></pre>

<p>And I want to dispose only the array (I have references to the objects somewhere else). So, is the next example enough to kill the array?</p>

<p>example:</p>

<pre><code>var a1 = {name:"1"}, a2 = {name:"2"}, ... , a32000 = {name:"32,000"};

var array = [ a1, a2, ... , a32000 ];

array = null;
</code></pre>

<p>Or should I do something like:</p>

<pre><code>for(var index in array) array[index] = null;
array = null;
</code></pre>
