Is there anything wrong with this test for undefined?
var undefined;
if(x == undefined){
//do something
}
or this:
function undefined(x){
return typeof x == 'undefined';
}
if(undefined(x)){
//do something
}
jsLint doesn't throws a reserverd word error, but the code still seems to work...