I'd want to know how to best filter an array from all elements of another array.
I tried using the filter function, but I'm not sure how to give it the values to eliminate. Something Along These Lines
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 <,<
}
How would you accomplish this if the filter function is no longer useful?