JavaScript vérifie si non confié

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