classes and enumerability

Kevin Smith zenparsing at
Tue Dec 23 22:02:56 PST 2014

> Given that you don’t know the names of the prototype properties and
> methods contained (could be deep in the prototype chain) in a object. How
> do you add these to another object?

getOwnPropertyNames, getOwnPropertySymbols, and getPrototypeOf to traverse
the prototype chain.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list