1function destroyer(arr) {
2 let valsToRemove = Object.values(arguments).slice(1);
3
4 for (let i = 0; i < arr.length; i++) {
5 for (let j = 0; j < valsToRemove.length; j++) {
6 if (arr[i] === valsToRemove[j]) {
7 delete arr[i];
8 }
9 }
10 }
11 return arr.filter(item => item !== null);
12}
13