import { StringEnum } from '@epegzz/es6-enum'
const COLOR = StringEnum('blue', 'green', 'red')
// The above is equal to
const COLOR = Object.freeze({
blue: 'blue',
green: 'green',
red: 'red'
})
ES6 enum creation utility
License
epegzz/es6-enum
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
ES6 enum creation utility
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published