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

Enum? #11

@jaandrle

Description

@jaandrle
  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

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions