Course lesson
Merge Objects with JavaScript's Spread Operator
Using the spread operator you can merge objects. This example uses two objects, but the syntax is the same for more. Note that duplicate keys will be overridden.
- Duration
- 0 min
- Access
- Free
- Transcript
- Needs source
Using the spread operator you can merge objects. This example uses two objects, but the syntax is the same for more. Note that duplicate keys will be overridden.