typed objects and value types

Claude Pache claude.pache at gmail.com
Thu Apr 3 06:28:35 PDT 2014


Le 3 avr. 2014 à 07:33, Andreas Rossberg <rossberg at google.com> a écrit :

> Not sure what type 'object' is used for in the wild.

I sometimes use it for distinguishing between "Object-like" objects and primitive values (usually together with an additional test for excluding `null`).

For that purpose, `typeof` applied to uvalues should not produce "object".

—Claude


More information about the es-discuss mailing list