Reflect.hasOwn() ?

Kevin Smith zenparsing at
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:

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: <>

More information about the es-discuss mailing list