dislick/enum-js — pull request #2 by elanhami (2013-12-19 11:46:39+00:00)
Title: Added support for ordinal values of enums. Added methods: toOrdinal - ge...

...ts the ordinal value of the enum; getByOrdinal - gets the enum with the ordinal value passed; Added options: startIndex - Number, index to start the ordinal values from. Default is 0; Updated tests; Updated README; Added var in setOptions for loop to prevent implicit declaration; Added check if console.log exists before writing error message.