JavaScript Professional — Medium
Key points
- Spread operator only copies enumerable properties
- Object.defineProperty can make properties non-enumerable
- Non-enumerable properties are not copied by the spread operator
Ready to go further?
Related questions
