Then, create a subclass of the Enum default export and add cases (and, optionally, freeze the enum to prevent the addition of addition cases): ...
enum provides you with an enum factory and an Enum class you can use for declaring enums in your Javascript/Coffee-Script application. In 2011 I was looking for a working Enum class and method to ...