Given two Arrays, return an Array consisting only of the non-intersecting items
<p>I'm getting stacked in an issue in JavaScript.</p>

<p>I have two arrays and I want to check if they intersect on some elements then delete those elements and return new array without the intersected elements.</p>

<p>example :</p>

<pre><code>Array A ( 
[0] =&gt; 0 [1] =&gt; 1 
)

Array B ( 
[0] =&gt; 2 [1] =&gt; 1 
)
</code></pre>

<p>I want to check them and return:</p>

<pre><code> Array result ( 
[0] =&gt; 0 [1] =&gt; 2 
)
</code></pre>

<p>How can i do this in JavaScript?</p>
