title: How to filter an array from all elements of another array
body: <p><br>
  I'd like to understand the best way to <strong>filter an array from all elements of another one</strong>. I tried with the filter function, but it doesn't come to me how to give it the values i want to remove. <br> Something Like:</p>
  
  <pre><code>var array = [1,2,3,4];
  var anotherOne = [2,4];
  var filteredArray = array.filter(myCallback);
  // filteredArray should now be [1,3]
  
  
  function myCallBack(){
      return element ! filteredArray; 
      //which clearly can't work since we don't have the reference &lt;,&lt; 
  }
  </code></pre>
  
  <p>in case the filter function is not usefull, how would you implement this ?
  <br>Edit: i checked the possible duplicate question, and it could be useful for those who understand javascript easily. The answer checked as good makes things easy.</p>