array.flat() creates an array with all sub-array elements concatenated recursively
Links
Description of array.flat() on MDN.
Blog post on flat and flatMap, on the v8 blog.
"#SmooshGate FAQ"
Related Katas
Array API
array.sort()basicsarray.sort()can take a compare functionarray.shift()(as introduced in ES3)array.push()(as introduced in ES3)Array.from()Array.of()array.fill()array.find()array.findIndex()array.entries()array.keys()array.values()array.includes()array.toReversed()
Difficulty Level
INTERMEDIATE