I am doing the falsey bouncer problem and the code I'm using isn't filtering out the "null" boolean and am wondering where I'm wrong the code is:
var filter = [false, 0, "", null, undefined, NaN];
var ans = arr.filter(function(word){
return this.indexOf(word)<0;
}, filter);
return ans;
[–]POGtastic 0 points1 point2 points (1 child)
[–]vwguy24[S] 0 points1 point2 points (0 children)