You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've seeing people deconstructing just like they construct new objects using shorthand property names. Since there is such standard like space after function name to distinguish function declarations from function calls, then should be nice to have a pattern for this case too.
I usually use spaces for deconstructing: { foo } = bar
And non-spaces for shorthand property names const bar = {foo}
The text was updated successfully, but these errors were encountered:
My personal opinions on these kind of rules, is to choose one an used everywhere, less rules are easy to remember than having more and special case; at the end these kind of rules are a matter of style
{foo}
I've seeing people deconstructing just like they construct new objects using shorthand property names. Since there is such standard like space after function name to distinguish function declarations from function calls, then should be nice to have a pattern for this case too.
I usually use spaces for deconstructing:
{ foo } = bar
And non-spaces for shorthand property names
const bar = {foo}
The text was updated successfully, but these errors were encountered: