Can anyone please help me out with this code? Apparently, I just figured out that one can't run a for loop within a filter function. How can I check all the items in array "a" in the filter function?
function destroyer(arr) {
  // Remove all the values
  var a = [];
  for (var i = 1;i < arguments.length;i++){
    a.push(arguments[i]);
  }
  return arr.filter(function(x){ 
    for (var b = 0;b <a.length;b++) { if (x !== a[b]){return x;} }
  });
}
 
     
     
    