Would some like Object.inspect(myObj) be useful?

Brendan Eich brendan at mozilla.com
Thu Jun 14 10:25:39 PDT 2012


Brendan Eich wrote:
> ES5 has plural Object.defineProperties for defining more than one 
> property on an object, and of course Object.create that defines all 
> the properties on a new object from a descriptor-map. But it doesn't 
> have anything like this inspect. We could add such an 
> Object.getPropertyDescriptors API, for sure.

Object.getOwnPropertyDescriptors, I should have written. "Own", *sigh*.

/be


More information about the es-discuss mailing list