> I'm curious what the benefit of that would be. Given that the > window.undefined property exists and has the undefined value, I'd think they > would give the same result.
They give the same results for properties, at least: someObject.undefinedProperty === undefined but not for variables that are undefined (meaning that 'var someUndefinedVar' or 'window.someUndefinedVar' was not used): someUndefinedVar === undefined // error typeof someUndefinedVar === "undefiend" // works I think it'd be better to be consistent everywhere. --John