JS: remove duplicate values in array, including the original
<p>Does anyone know how to remove duplicates in an array including the original value? I came across different snippets like <a href="http://www.codeproject.com/Tips/507855/Get-Unique-Values-from-a-JavaScript-Array" rel="nofollow noreferrer">this</a> 
and <a href="https://stackoverflow.com/questions/9229645/remove-duplicates-from-javascript-array">this</a> and some others but none in particular is removing the original node at the same time. Care to share a little snippet ? TIA!</p>

<p>Example:</p>

<pre><code>[1, 1, 2, 3, 5, 5] -&gt; [2, 3]
</code></pre>