Course · Section 10: A Closer Look at Functions · Lecture 137: First-Class and Higher-Order Functions
Implement `flattenDeep(arr)` that recursively flattens a deeply nested array into a single flat array.
+ 2 hidden tests run on Submit.
Recursing into nested arrays and gathering non-array values flattens arbitrarily deep structures.
Run your code to see results.