Flatten Arrays in Vanilla JavaScript with Flat() and FlatMap() | Hacker News Reader