Skip to content
This repository was archived by the owner on Feb 22, 2025. It is now read-only.

Enum? #11

Open
jaandrle opened this issue Mar 4, 2020 · 0 comments
Open

Enum? #11

jaandrle opened this issue Mar 4, 2020 · 0 comments
Labels
question Further information is requested

Comments

@jaandrle
Copy link
Owner

jaandrle commented Mar 4, 2020

  1. createEnum= (...arr)=> arr.reduce((o, key)=> (o[key]= Symbol(key), o), Object.create(null));
  2. https://2ality.com/2018/08/enums-via-proxies.html
@jaandrle jaandrle added the question Further information is requested label Mar 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant