Object.prototype.inspect ?

Tobie Langel tobie.langel at gmail.com
Sat Mar 7 17:18:22 PST 2009


Hi,

I've been working on a unit test framework recently.

The lack of a more developer-friendly representation of objects than  
the one obtained through their toString method (or by calling  
Object.prototype.toString) made me long for an ES equivalent of Ruby's  
inspect instance method.

I searched the wiki for a discussion on the topic and couldn't find  
anything. The mailing-list search function seems down right now, so no  
luck there either.

Has this been discussed before?

Best,

Tobie


More information about the Es-discuss mailing list