Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.


    Automate the process of flattening deeply nested arrays using ES2019's flat method.


    Among the features introduced to the language of JavaScript in ES2019 is Array.prototype.flat. In this lesson we'll see just how easy the flat method makes the process of unboxing arrays regardless of how deeply nested they may be.