Falsy Bouncer ?:::::

What’s the problem with my syntax? Each condition is correct but null is not acceptable… Can you help me?

function bouncer(arr) {
  
  var c = arr.filter(function(val){
    if ( ( ( val === false )  || ( val === 0 ) || ( val === "" ) || ( val === undefined ) || ( val == isNaN ) || 
   ( val === null ) ) ) {
     
      return false;
       
    }
    else {
    
      return true;
    }

  });
  
  return c;
}

bouncer([1, null, NaN, 2, undefined]);

Ok first isNaN is a function, take a look at this: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/isNaN
Second you are doing more checks then you need to. Take a look at this: https://www.w3schools.com/jsref/jsref_type_conversion.asp
Pay close attention to the column “Converted
to Boolean”

Thanks for tip bro:) I will review again

I cleaned up your code.
You need to use triple backticks to post code to the forum.
See this post for details.