How to determine if variable is 'undefined' or 'null'?

How to determine if variable is 'undefined' or 'null'?

if( typeof variable === 'undefined' || variable === null ){
    // Your code here
}

 

2020-03-07