Add dynamic object keys notes

This commit is contained in:
Marcello Lamonaca 2021-05-11 11:19:32 +02:00
parent cd1fa67960
commit b2cd836431

View file

@ -560,6 +560,7 @@ let variable = value;
let obj = {
property: value,
variable, // same as variable: variable
[property]: value // dynamic prop name
object: {
...