JavaScript Professional — Medium
Key points
- Destructuring in JavaScript allows for extracting values from objects
- The rest operator (...) is used to gather remaining properties into a new object
- The extracted 'a' property is assigned to a variable, leaving the 'b' property in the rest object
Ready to go further?
Related questions
