Licson Lee says to YSITD
function undef(x){ return !{undefined:{undefined:1}}[typeof x}][x];