JavaScript string replacement
<p>I have a string with comma separated values:</p>

<pre><code>var x = '1,2,10,11,12';
</code></pre>

<p>I need to remove the value that's in y.</p>

<pre><code>x = remove(x,y);
</code></pre>

<p>Q: Is there a function for that already or do I need to convert it to an array, remove y and then convert it back to a string?</p>
