JavaScript typeOf no afinado
var x;
if (typeof x === 'undefined') {
// these statements execute
}
Smoggy Shrew
var x;
if (typeof x === 'undefined') {
// these statements execute
}