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
Flatten a Nested Array in JavaScript with Array.prototype.flat
Instructor
Laurie Barth
Social Share Links
Tweet
Copy link
Copy lesson as prompt
View code for this lesson
This is an example of how to use the flat method available on the array prototype in JavaScript.
Comments
(0)