egghead.io
Topics
Courses
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
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
Autoplay
is off
off
Array.prototype.flatMap from ES2019
Instructor
Laurie Barth
Share this video with your friends
Social Share Links
Send Tweet
Copy link
Published 5 years ago
Updated 2 years ago
Use the flatMap function to both map and flatten at the same time.
View code for this lesson
Comments
(0)