What am i missing here , the if conditon works (i checked it) , but i am missing something, Help
Your code so far
function destroyer(arr) {
// Remove all the values
var args = Array.prototype.slice.call(arguments);
let hna = args.splice(1 , 3);
return args[0].map(function(item,index){
if(hna.includes(item)===true){
delete item;
}
return args[0];
})
//console.log(hnak)
}
destroyer([1, 2, 3, 1, 2, 3], 2, 3);
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36
.
Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/seek-and-destroy/