1×
Become a member
to unlock all features

Create an egghead account to access 5000+ tutorials and resources from expert developers.

Create account
Autoplay

    Array.prototype.flatMap from ES2019

    javascriptJavaScript

    Use the flatMap function to both map and flatten at the same time.