On the code:
if ( some_variable == null ){
// some_variable is either null or undefined
}
More Code:
if ( !some_variable ) {
// some_variable is either null, undefined, 0, NaN, false, or an empty string
}
On the code:
if ( some_variable == null ){
// some_variable is either null or undefined
}
More Code:
if ( !some_variable ) {
// some_variable is either null, undefined, 0, NaN, false, or an empty string
}