Suggestion: "Object.hasOwnProperty"

doodad-js Admin doodadjs at gmail.com
Thu May 26 21:42:01 UTC 2016


>> This would break a Web, a I have seen code that relies on Object.hasOwnProperty === Object.prototype.hasOwnProperty

Sorry, I didn’t remember that the constructor inherits it.

>> Anyway, it would be handy to have such function as `Reflect.hasOwn` or something like that. 

Yeah, maybe that then. Or “System.ObjectHasOwn” or else.

Thanks

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


More information about the es-discuss mailing list