Suggestion: "Object.hasOwnProperty"

doodad-js Admin doodadjs at gmail.com
Thu May 26 19:26:52 UTC 2016


Hi,

 

I think to create "Object.hasOwnProperty". Often, an object is used to store
key/value pairs and most users forget that "hasOwnProperty" can be also be a
key. Objects created by "Object.create(null)" don't inherit this function
and users get lost when they get such an object from a library or their own
code.

 

Claude Petit

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20160526/1f272fc3/attachment.html>


More information about the es-discuss mailing list