enumb
v1.0.0
Published
enums but with numbered keys
Downloads
6
Readme
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