Array flat() and flatMap()
Widely availableThe flat()
and flatMap()
methods for arrays creates a new array such that each nested array item is concatenated into it.
The flat()
and flatMap()
methods for arrays creates a new array such that each nested array item is concatenated into it.