Symbols are enumerable by default just like normal
properties. Object.assign skips non-enumerable Symbols.
Object.defineProperty can be used to create a non-enumerable Symbol, but I
believe that only impacts Object.assign (and specific enumerability
methods, obv).

On Thursday, June 16, 2016, doodad-js Admin <dooda...@gmail.com> wrote:

> (quotes from G.Kay Lee)
>
>
>
> > I believe Symbols are all actually non-enumerable which will void the
> suggestion.
>
>
>
> I can confirm they can be enumerable, or “Object.propertyIsEnumerable” is
> lying to me.
>
>
>
> > And please, stop trying to add all kinds of trivial variations of
> property extraction methods already.
>
>
>
> Who, me ? That’s not trivial.... We have “Object.keys” for enumerables,
> why not “Object.symbols” for enumerables ?
>
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to