Object property shorthand
When assigning a variable to an object property, if the variable name is equal to the property name, you can do the following:
Explanation
Usually (pre-ES2015) when you declare a new object literal and want to use variables as object properties values, you would write this kind of code:
As you can see, this is quite repetitive because the properties name of myObj are the same as the variable names you want to assign to those properties.
With ES2015, when the variable name is the same as the property name, you can do this shorthand: