Javascript check if undefinded
snippet in javascript

Javascript check if undefinded

user5589

if (typeof myVariable === 'undefined'){
    //myVariable is undefined
}