By the way, `typeof X === 'undefined'` doesn't need to be used for variable names that exist such as arguments, you can use X == undefined without opportunity for failure.
Here is one such edge case:
(function () {
var undefined = true;
return (function foo(x) {
return x === undefined;
}());
}()); // false
Language pedantry aside, browsers these days will freeze `window.undefined` so you'd have to shoot yourself in your own scope ;)