Suggestion: Object.symbols

Alexander Jones alex at weej.com
Wed Jun 15 22:50:22 UTC 2016


Question is why would you actually want this when you have `Map`?

I consider all of the 'get some arbitrary subset of properties from an
object' use cases obsoleted by `Map`. But maybe I'm missing something
obvious or not-so-obvious...?

Cheers

Alex

On Wednesday, 15 June 2016, doodad-js Admin <doodadjs at gmail.com> wrote:

> Hi,
>
>
>
> There is “Object.keys” for enumerable-only own property names of an
> object, and “Object.getOwnPropertyNames” for enumerable and non-enumerable
> own property names of an object. Now we have “Object.getOwnPropertySymbols”
> which returns enumerable and non-enumerable own symbols of an object, but
> we are missing a function “Object.symbols” that returns enumerable-only own
> symbols of an object.
>
>
>
> Thanks,
>
>
>
> Claude Petit
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20160615/fda94771/attachment.html>


More information about the es-discuss mailing list