Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Flatten Arrays in Vanilla JavaScript with Flat() and FlatMap(). Parent comment
[1, 2, 3, 4, 5].reduce((acc, n) => n % 2 === 1 ? [ ...acc, 2 * n ] : acc, [])