Closed bterlson closed 8 years ago
[[1,2],[3,[4,5]]].flatMap(n => n) === [1,2,3,[4,5]]
@bterlson should flatMap take a "depth" argument, like flatten?
flatMap
flatten
[[1,2],[3,[4,5]]].flatMap(n => n) === [1,2,3,[4,5]]