Enumerability

Brendan Eich brendan at mozilla.com
Sat Jan 11 08:54:17 PST 2014


Axel Rauschmayer wrote:
> Nice example. Data versus meta-data, in line with the `length` of an 
> array being non-enumerable.

Yes, and that's the primordial reason for enumerability. But it still 
seems that class declaration users might want methods on the prototype 
to be non-enumerable. Sauce for the goose (built-ins).

/be


More information about the es-discuss mailing list