How to check for both null and undefined in js?

Posted by Blankman on Stack Overflow See other posts from Stack Overflow or by Blankman
Published on 2010-05-18T18:45:22Z Indexed on 2010/05/18 18:50 UTC
Read the original article Hit count: 131

Filed under:

Is it possible to check for both null and undefined in javascript?

if(_var == null || _var == undefined) {

}

© Stack Overflow or respective owner

Related posts about JavaScript