Faz:
var x = false; if(x === false || x === 'undefined'undefined || isNaN(x)) { }
Qualquer dúvida, olha esses links: http://www.w3schools.com/jsref/jsref_isnan.asp http://www.w3schools.com/js/js_if_else.asp
var x = false; if(x === false || x === 'undefined' || isNaN(x)) { }
var x = false; if(x === false || x === undefined || isNaN(x)) { }