Inspectopedia Help

Property can be replaced with shorthand

Reports an object property that can be converted to ES6 shorthand style and provides a quick-fix to do it.

Example:

var obj = {foo:foo}

After applying the quick-fix the code looks as follows:

var obj = {foo}
Last modified: 29 April 2024