Seek and destroy: what am I doing wrong?

Seek and destroy: what am I doing wrong?
0

#1
  // Remove all the values
  function getItOut(value) {
    for (var i=1;i < arr.length;i++) {
console.log('getItOut: ', arguments);
} return arr.filter(getItOut);
    }  
  }

destroyer([1, 2, 3, 1, 2, 3], 2, 3);`````

#2

Handling the input is a little strange here. You can use something like the following to get the arr and the targets:

 var arr = arguments[0];
 var targets = Object.values(arguments).slice(1);

Maybe it is fine, but having a for loop in a filter statement looks a little weird to me and is not necessary for this challenge. You can use something like this to check if a value is in an array instead:

targets.indexOf(val) !== -1;

#3

I like your suggestion. I would like to add though, in the filter function it would be easier to just check if the value is not in the targets arr.

return targets.indexOf(val) === -1;