Arrays
Flatten Array (Deep)
easyJS SpecificJS / TS7 tests
Problem Statement
Write a function `flatten` that recursively flattens a nested array of arbitrary depth without using `Array.prototype.flat`.
Examples
Example: flatten([1, [2, [3, [4]], 5]]) -> [1, 2, 3, 4, 5]
JavaScript & TypeScript starter code included
Run this as a live interviewPractice solo
7 test cases. No second person needed.