title: How do I get the difference between an associative array and a regular array in Javascript?
body: <p>Is it possible to get the difference of an associative array and a regular array in Javascript?</p>
  
  <p>Ex.</p>
  
  <pre><code>array1 = [5, 1, 3];
  array2 = [1 =&gt; 15, 2 =&gt; 20, 3 =&gt; 10, 4 =&gt; 5, 5 =&gt;50 ];
  </code></pre>
  
  <p>The difference would be...</p>
  
  <pre><code>diff = [2 =&gt; 20, 4=&gt; 5];
  </code></pre>