The typeof operator doesn\'t really help us to find the real type of an object.
typeof
I\'ve already seen the following code :
Object.prototyp
The JavaScript specification gives exactly one proper way to determine the class of an object:
Object.prototype.toString.call(t);
http://bonsaiden.github.com/JavaScript-Garden/#types