JavaScript verifique se indefinido

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