es6 destructuring
See original GitHub issuefunction takeThing({prop}) {
console.log("inner prop", prop)
}
is being reformatted to
function takeThing({
prop
}) {
console.log("inner prop", prop)
}
I don’t think this is intentional.
Issue Analytics
- State:
- Created 9 years ago
- Comments:12 (7 by maintainers)
Top Results From Across the Web
Destructuring assignment - JavaScript - MDN Web Docs
The destructuring assignment syntax is a JavaScript expression that makes it possible to unpack values from arrays, or properties from ...
Read more >React ES6 Destructuring - W3Schools
Destructuring makes it easy to extract only what is needed. Destructing Arrays. Here is the old way of assigning array items to a...
Read more >ES6 Destructuring Assignment Explained By Examples
ES6 provides a new feature called destructing assignment that allows you to destructure properties of an object or elements of an array into...
Read more >10. Destructuring - Exploring JS
Destructuring is a convenient way of extracting multiple values from data stored in (possibly nested) objects and Arrays. It can be used in...
Read more >ES6 Destructuring: The Complete Guide - codeburst
Destructuring simply implies breaking down a complex structure into simpler parts. In JavaScript, this complex structure is usually an object or ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@JoyceBabu Glad you found it. 😄 Please use
"collapse,preserve-inline"
.@bitwiseman I found out the option name from another issue. Fixed by setting
"brace_style": "collapse-preserve-inline"
. Thank you.