title: Function that returns difference of two arrays of strings in javascript
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1723168/what-is-the-fastest-or-most-elegant-way-to-compute-a-set-difference-using-javasc">What is the fastest or most elegant way to compute a set difference using Javascript arrays?</a>  </p>
  </blockquote>
  
  
  
  <p>I need help with devising a function that will return the difference between two arrays of strings in Javascript (jQuery is acceptable as well). </p>
  
  <p>I am basically looking for a function that calculates array A <strong>minus</strong> B. </p>
  
  <p>So if we have the followin" </p>
  
  <pre>
  A = ['Istanbul', 'Hong Kong', 'Berlin'];
  B = ['Berlin', 'Bonn'];
  </pre>
  
  <p>Calling <code>diff = minus(A,B)</code> should result with <code>diff</code> being populated with the following values <code>['Istanbul', 'Hong Kong']</code></p>
  
  <p>I do not want to use an additional library like <code>JS Set</code>. </p>
  
  <p>Please help with suggestions ... </p>