Added support for ordinal values of enums. Added methods: toOrdinal - gets 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.
added support for creating enums from objects and giving textual value different than the name.
added contains method to test if Enum contains an enum name
fixed bugs
getNames and getByOrdinal did not work for enums constructed from objects.
Added unit tests
added comment
Merge pull request #2 from elanhami/master

Added support for ordinal values of enums. Added methods: toOrdinal - ge...