1×
Become a member
to unlock all features

Level Up!

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

Autoplay

    Flatten nested array using recursive reduce function

    Recursive functions are inherently hard concept to grasp for many beginners. reduce array method shares the same title of being the hardest among the methods. Let's bring it up a notch and create a recursive reduce function that flattens a nested array in JavaScript to finally figure how both of them work!