Skip to main content
removeu 2 caracteres do conteúdo
Fonte Link
fernandoocf
  • 1,1mil
  • 3
  • 11
  • 24

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

Faz:

 var x = false;

 if(x === false || x === '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

Faz:

 var x = false;

 if(x === false || x === 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

Fonte Link
fernandoocf
  • 1,1mil
  • 3
  • 11
  • 24

Faz:

 var x = false;

 if(x === false || x === '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