๐ง under construction
JS โฉ value โฉ object โฉ property โฉ shorthand property
โญ๏ธ ES6 (2015)
๐ง description
let x = 1, y = 2; let o = { x, y }; // shorthand property: instead of {x: x, y: y}
JavaScript: The Definitive Guide โฉ 6.10.1 Shorthand Properties
Last updated 2 years ago