ECMAScript 6 enums In the ES6 Intro project, I have included an example of how to create first-class enums in ES6. The switch statement evaluates an expression, matches the expression’s value to a case clause and executes the statements associated with that case. es6には標準でenumがないため、自前でenum風のクラスを作ってみたいと思います。
Previous Page. Advertisements. This chapter will introduce some of the new features in ES6. Next Page .
TypeScript is developed and maintained by Microsoft under the Apache 2 …