[enums] How to get names of enum entries?

The best way I think is to just declare the desired enum values. That way accessing them is clean and pretty (every time).

enum myEnum { entry1 = 'VALUE1', entry2 = 'VALUE2' }

for (var entry in myEnum) { 
    console.log(entry);
}

will produce:

VALUE1
VALUE2