Would some like Object.inspect(myObj) be useful?
David Bruant
bruant.d at gmail.com
Thu Jun 14 03:32:10 PDT 2012
Le 14/06/2012 11:42, Hemanth H.M a écrit :
> Was just wondering if something like *Object.inspect(myObj) *would
> give all the attributes of that particular object.
In ES5, there are Object.getOwnPropertyNames as well as
Object.getOwnPropertyDescriptor. These are the lowest-level constructs
you need to do any introspection, I think.
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120614/bad9f39d/attachment.html>
More information about the es-discuss
mailing list