Suggestion: "Object.hasOwnProperty"

Isiah Meadows isiahmeadows at gmail.com
Fri May 27 14:30:07 UTC 2016


I'd, for ergonomic reasons, would prefer it on Reflect. I very frequently
alias this function, so having it as a static method on Reflect would be
nice.

On Thu, May 26, 2016, 17:42 doodad-js Admin <doodadjs at gmail.com> wrote:

> >> 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
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20160527/8102781e/attachment.html>


More information about the es-discuss mailing list