DEV Community

Discussion on: 4 Ways to Level-Up Your JS Destructuring and Spread Syntax

Collapse
scottodea profile image
Scott O'Dea Author

This is the correct approach for a single element, but what if you needed to pull 3 or 4 elements from the array? Granted I used a single element in my example, but just trying to keep it simple to understand.