Widely Available
Arrays
id: array-flat
Array flat() and flatMap()
The
flat() and flatMap() methods for arrays creates a new array such that each nested array item is concatenated into it.
Baseline Status:
Achieved Widely Available on Jul 15, 2022 (Cross-browser Newly Available since Jan 15, 2020).
Desktop Browser Engine Support
Google Chrome
69
Supported
Mozilla Firefox
62
Supported
Apple Safari
12
Supported
Microsoft Edge
79
Supported
Mobile Browser Engine Support
Chrome Android
69
Firefox Android
62
Safari iOS
12
Specifications and References