Object id, hash, etc?
nbdd0121 at hotmail.com
Tue Sep 8 15:50:20 UTC 2015
Changing toString() is obviously not possible since the semantics are fixed and many existing code depends them (ex. Object.prototype.toString are used for type identifying, String.prototype.toString are used for meta-programming frameworks. I think you can extend Object.prototype to provide a hashing method if you really need them for debugging. Personally I think it is not usually needed.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss