title: Returning an array without a removed element? Using splice() without changing the array?
body: <p>I want to do something like:</p>
  <pre><code>var myArray = [&quot;one&quot;,&quot;two&quot;,&quot;three&quot;];
  document.write(myArray.splice(1,1));
  document.write(myArray);
  </code></pre>
  <p>So that it shows first &quot;one,three&quot;, and then &quot;one,two,three&quot;. I know splice() returns the removed element and changes the array, but is there function to return a new array with the element removed? I tried:</p>
  <pre><code>window.mysplice = function(arr,index,howmany){
      arr.splice(index,howmany);
      return arr;   
  };
  </code></pre>
  <p>If I try:</p>
  <pre><code>var myArray = [&quot;one&quot;,&quot;two&quot;,&quot;three&quot;];
  document.write(mySplice(myArray,1,1));
  document.write(myArray);
  </code></pre>
  <p>It still changes myArray.</p>