Minifycode 2020-03-07 Viewed 1.2K times Javascript

In this article, you will learn how to determine if variable is 'undefined' or 'null'?

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

 

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