DEV Community

loading...

Discussion on: Spread operator, Rest Operator & Destructuring in JS

Collapse
paulkd profile image
Paul Dunderdale

I really liked your examples.

Just a quick note on the object example - you need parentheses around destructuring declaration.

developer.mozilla.org/en-US/docs/W...

Collapse
thekrprince profile image
Kumar Prince Author

Yeah... For the object destructuring, I have given parentheses.