egghead.io
Topics
Courses
Newsletter
Open navigation
Play Video
Pause
Playback Rate
1.00×
Current Time
0:00
/
Duration Time
0:00
Toggle side panel
Full screen (f)
Course
ES6 and Beyond
Autoplay
is off
off
Copy an Object with the Spread Operator
Instructor
Laurie Barth
Social Share Links
Tweet
Copy link
Copy lesson as prompt
View code for this lesson
Use the spread operator to copy a flat object. Note that this is a shallow copy.
Comments
(0)