classes and enumerability

Kevin Smith zenparsing at gmail.com
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: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20141224/10ea716d/attachment.html>


More information about the es-discuss mailing list