Combining typeof and instanceof

Axel Rauschmayer axel at rauschma.de
Sun Feb 3 13:14:02 PST 2013


It has always bothered me that one had to distinguish primitives and objects if one wanted to categorize values in JavaScript. The following is a proposal for changing that:

http://www.2ality.com/2013/02/isinstance.html

Comments and suggestions welcome.

-- 
Dr. Axel Rauschmayer
axel at rauschma.de

home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130203/ee89e895/attachment.html>


More information about the es-discuss mailing list