egghead.io
Download
Turn autoplay on
Autoplay
Course
ES6 and Beyond
1
Copy an Array with the Spread Operator
27s
2
Nested Destructuring for Objects
42s
3
Copy an Object with the Spread Operator
35s
4
Merge Arrays using the Spread Operator
25s
5
Flatten a Nested Array in JavaScript with Array.prototype.flat
50s
6
Merge Objects with JavaScript's Spread Operator
25s
7
For...in Loop vs. For...of Loop
1m 37s
8
Array.prototype.flatMap from ES2019
45s
9
Convert an Object to an Array and back again with Object.entries and Object.fromEntries
26s
10
Safely Access a Property on a JavaScript Object with Optional Chaining
31s
11
Safely Access a Property on a JavaScript Array with Optional Chaining
27s
Copy an Object with the Spread Operator
Instructor
Laurie Barth
JavaScript
Share this video with your friends
Send Tweet
Copy link
to clipboard
Use the spread operator to copy a flat object. Note that this is a shallow copy.
Comments