noom
v0.1.0
Published
Enumeration types
Downloads
5
Readme
noom
Super simple Enums.
var noom = require('noom');
var Color = noom('RED', 'GREEN', 'BLUE');
var red = Color.RED;
assert.equal(red, Color.RED);
assert.notStrictEqual(red, 'RED'); //careful about type conversion ==
assert.equal(red + '', 'RED');
assert(red instanceof Color);