Problem with seek and destroy challenge

Problem with seek and destroy challenge
0

#1

Hello everyone, I 've been stuck with the seek and destroy challange. I don’t understand why my code doesn’t return the right solution. Could u please help me ? Thanks.

function destroyer(arr) {

// Remove all the values

for(var i=1;i<arguments.length;i++){
for(var j=0; j<arguments[0].length;j++){
if(arguments[0][j]==arguments[i]){
arguments[0].splice(j,1);
}
}
}
return arr;
}


#2

Hi, you do nothing with arr.