Returning an array without a removed element? Using splice() without changing the array?
<p>I want to do something like:</p>

<pre><code>var myArray = ["one","two","three"];
document.write(myArray.splice(1,1));
document.write(myArray);
</code></pre>

<p>So that it shows first "one,three", and then "one,two,three". 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 = ["one","two","three"];
document.write(mySplice(myArray,1,1));
document.write(myArray);
</code></pre>

<p>It still changes myArray...</p>

<p>Please help.</p>
