Would some like Object.inspect(myObj) be useful?
Hemanth H.M
hemanth.hm at gmail.com
Thu Jun 14 09:49:37 PDT 2012
The inspect module provides functions for introspecting on live objects and
their source code.
On Thu, Jun 14, 2012 at 6:21 PM, Russell Leggett
<russell.leggett at gmail.com>wrote:
> On Thu, Jun 14, 2012 at 5:42 AM, Hemanth H.M <hemanth.hm at gmail.com> wrote:
>
>> Was just wondering if something like *Object.inspect(myObj) *would give
>> all the attributes of that particular object.
>
>
> What would this function return? There's already an Object.keys<https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/keyss>function - does that do what you wanted? That's in ES5.
>
> - Russ
>
>
>>
>>
>> --
>> *'I am what I am because of who we all are'*
>> h3manth.com <http://www.h3manth.com>
>> *-- Hemanth HM *
>>
>> _______________________________________________
>> es-discuss mailing list
>> es-discuss at mozilla.org
>> https://mail.mozilla.org/listinfo/es-discuss
>>
>>
>
--
*'I am what I am because of who we all are'*
h3manth.com <http://www.h3manth.com>
*-- Hemanth HM *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120614/cc59883a/attachment.html>
More information about the es-discuss
mailing list