A walkthrough of rewriting JavaScript's Array.flat() recursively [15 lines]
reddit.com