Tell us what’s happening:
Your code so far
function destroyer(arr) {
// Remove all the values
var filterFunc = function(val){
for(var i = 1; i<arguments.length; i++){
if(val ==arguments[i]){
return false;
}
}
return true;
};
arr = arr.filter(filterFunc);
return arr;
}
destroyer([1, 2, 3, 1, 2, 3], 2, 3);
Your browser information:
Your Browser User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/60.0.3112.113 Chrome/60.0.3112.113 Safari/537.36
.
Link to the challenge: