mirror of
https://github.com/m-lamonaca/dev-notes.git
synced 2025-04-06 10:56:41 +00:00
Add dynamic object keys notes
This commit is contained in:
parent
cd1fa67960
commit
b2cd836431
1 changed files with 1 additions and 0 deletions
|
@ -560,6 +560,7 @@ let variable = value;
|
|||
let obj = {
|
||||
property: value,
|
||||
variable, // same as variable: variable
|
||||
[property]: value // dynamic prop name
|
||||
|
||||
object: {
|
||||
...
|
||||
|
|
Loading…
Add table
Reference in a new issue