jskatas.org Continuously Learn JavaScript. Your Way.

Array API: array.flat()

array.flat() creates an array with all sub-array elements concatenated recursively

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

Difficulty Level

INTERMEDIATE