IIRC typeof null -> "object" was a mistake - but too late to fix now due to 
backwards compatibility issues.

By the way... 

    toString.call(variable) === '[object Array]'

...is risky because you are defaulting to toString on global object - e.g. 
window. Anyone could shadow toString on window and then your framework 
breaks

safer version is...

   Object.prototype.toString.call(variable) == '[object Array]'

(=== not required)


-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

Reply via email to