if(someVar === null || someVar === undefined || someVar === ""){
//some code
}
you can have the same result like this:
if(!someVar){}
Check it working if you don’t believe me:
JS Bin
if(someVar === null || someVar === undefined || someVar === ""){
//some code
}
you can have the same result like this:
if(!someVar){}