I often use the improved typeof function: http://javascriptweblog.wordpress.com/2011/08/08/fixing-the-...
Question: why is the way to determine null considered "very bad"? It works and seems like a valid way, since both empty objects and arrays are truthy, null is the only falsy "object" type.