enumb

1.0.0 • Public • Published

enumb

enums but with numbered keys

Usage

var options = enumb([
    'Foo',
    'Bar'
]);
 
options.Foo; // -> Option 'foo'
 
enumb.valueFor(options, 0) === options.Foo; true
 
enumb.keyFor(options, options.Foo) === 0; true

Readme

Keywords

none

Package Sidebar

Install

npm i enumb

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

1.72 kB

Total Files

4

Last publish

Collaborators

  • korynunn