Have [Symbol.iterator] on the enum object #17
Jack-Works
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Should we have a
[Symbol.iterator]
on the enum object?Problem
What if developers actually want to iterate on the key to get "B", "C" instead of 1, 2?
This feature conflicts with the feature Fully computed key in #11 because it's possible to write the following code.
Beta Was this translation helpful? Give feedback.
All reactions