javascript splice
<p>I have an array MyArray and I want to remove one element at position i.</p>

<p>I tried:</p>

<pre><code>MyArray = MyArray.splice(i, 1); 
</code></pre>

<p>but it's returning the element I want to remove, instead of the array without the element I want to remove.</p>

<p>I''m sure it's a simple fix, thanks anyway.</p>
