Keep getting Boolean not defined for Seek and Destroy challenge

Hi guys!

I’m doing this now and having gone through the basic solution I keep getting ‘boolean is not defined’. Here’s my code:

for (let i=0;i<arr.length;i++){
  for (let j = 0; j<args.length; j++) {
    if ([i]===args[j]){
      delete arr[i];
    }
  }
}
return arr.filter(boolean);
}

Do you guys see what might be causing the problem? Thanks a bunch!

Oh! I understand it now! Thanks a lot @camperextraordinaire!

(I’ll be sure to post the function [i.e. the whole code] in next time too :slightly_smiling_face:)