Reflect.hasOwn() ?

Kevin Smith zenparsing at gmail.com
Sat Jul 26 12:19:41 PDT 2014


>
>
> Did you mean `Reflect.ownKeys()`?
>

I meant Object.keys.  That will eliminate the inconsistency between
Object.keys usage and hasOwnProperty usage that crops up sometimes:

https://github.com/joyent/node/issues/7587

When dealing with objects-as-maps, it's usually just the key-ness that
you're interested in, not whether the property is inherited or not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140726/0b64ca5b/attachment.html>


More information about the es-discuss mailing list