Need to turn nested arrays into one array? JavaScript’s `flat` replaces nested arrays with their elements. It flattens one level by default; pass a depth to flatten more levels. section 10.1.4
Depth matters
`[[1], [2, [3]]].flat()` produces `[1, 2, [3]]`. The `[3]` remains nested because it was two levels deep. section 10.1.4
Pair `map` with `flat` when one input item should produce several output items—or none. For that one-to-many transformation, `flatMap` combines the two steps in one operation. section 10.1.4
