Object id, hash, etc?

Gary Guo 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...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150908/bfbf36fc/attachment.html>

More information about the es-discuss mailing list