Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript check if undefined or null

if( typeof myVar === 'undefined' || myVar === null ){
    // myVar is undefined or null
}
 
PREVIOUS NEXT
Tagged: #javascript #check #undefined #null
ADD COMMENT
Topic
Name
4+2 =