3 ms·
Looks like a standard ES6+ object literal to me. ES6 allows you to shorthand `{someVariable : someVariable}` as just `{someVariable}` (ie, create a key whose n
by acemarke 10y ago
Looks like a standard ES6+ object literal to me. ES6 allows you to shorthand `{someVariable : someVariable}` as just `{someVariable}` (ie, create a key whose name is the variable name and whose value is the variable value). There's some good overviews of ES6's new syntax and features at https://ponyfoo.com/articles/es6 https://ponyfoo.com/articles/es6 and http://es6-features.org/ http://es6-features.org/ .
- emehrkay 10y agoThanks that is exactly what I was asking. I didn't know about that change.