The following is mine, there are simmilar way of thinking but different way of code
function destroyer(arr){
//convert arguments into array
var args = Array.from(arguments);
//comparing the indexes of array and arguments
//and delete if it's equal
for(var i in arr){
for(var j in args){
if(arr[i] === args[j]){
delete arr[i];
}
}
}
// the expected result of arr would contain some null values
//therefore, we need to filter() those null
return arr.filter(arr => Boolean(arr));
}