Javascript copy array to new array
<p>I want to form an array from an existing array so I can modify the new array without affecting the old.  I realise arrays are mutable and this is why the new array affects the old.</p>

<p>E.g.</p>

<pre><code>old = ["Apples", "Bananas"];
new = old;

new.reverse();
</code></pre>

<p>Old has also been reversed.</p>

<p>In Python, I can just do <code>new = list(old)</code>, but doing <code>new = new Array(old);</code> puts the old list inside a list.</p>
