Course · Section 10: A Closer Look at Functions · Lecture 137: First-Class and Higher-Order Functions
Implement `deepFlatten(arr)` fully flattening arbitrarily nested arrays of numbers using recursion.
+ 1 hidden test run on Submit.
Recursing into nested arrays and collecting scalars flattens arbitrarily deep structures.
Run your code to see results.