(Deep) copying an array using jQuery
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/122102/what-is-the-most-efficient-way-to-clone-a-javascript-object">What is the most efficient way to clone a JavaScript object?</a>  </p>
</blockquote>



<p>I need to copy an (ordered, not associative) array of objects. I'm using jQuery. I initially tried </p>

<pre><code>jquery.extend({}, myArray)
</code></pre>

<p>but, naturally, this gives me back an object, where I need an array (really love jquery.extend, by the way).</p>

<p>So, what's the best way to copy an array? </p>
