Jump to Categories

Is not undefined


var name = "Shane";
if(typeof name !== "undefined") {
  alert(name);
}

Refs
How to check a not-defined variable in JavaScript - Stack Overflow