Use es6 to implement enum in JavaScript
github.com