Flattening a deeply nested array
Filed under APIwiz
The question
Write a function to flatten a deeply nested array (e.g., [1, [2, [3]]]) into a single-level array.
No write-up yet. Related questions below have one.
Related APIwiz questions
Collected from public candidate posts and coding forums. Updated Nov 2026.