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!