Es6 Computed (dynamic) Property Names
I am reading this explanation in order to get a better understanding of ES6. In the bit about Enhanced Object Literals, this is given as example code: var obj = { ... (removed
Solution 1:
(() => 42)()
is a long way of writing 42
in ES6 using an arrow function.
Post a Comment for "Es6 Computed (dynamic) Property Names"