Trusted by 2 Mn+ QAs & Devs to accelerate their release cycles
Last updated on : 2023-03-20
Methods to flatten possible sub arrays which are found in the array with the help of concatenating their elements.
ECMAScript Language Specification # sec-array.prototype.flatmap
// Arrow function flatMap((currentValue) => { /* ... */
} ) flatMap((currentValue, index) => { /* ... */
} ) flatMap((currentValue, index, array) => { /* ... */
} ) // Callback function flatMap(callbackFn) flatMap(callbackFn, thisArg) // Inline callback function flatMap(function(currentValue) { /* ... */
}) flatMap(function(currentValue, index) { /* ... */
}) flatMap(function(currentValue, index, array){ /* ... */
}) flatMap(function(currentValue, index, array) { /* ... */
}, thisArg)
array-flat.html
Source:array-flat.html
flatmap.html
Source:flatmap.html
Browser Support For Safari on iOS Versions
Browser Support For Android Browser Versions
Browser Support For Chrome for Android Versions
Browser Support For Firefox for Android Versions
Browser Support For Samsung Internet Versions
Debug webpages on the go with LT Debug Chrome extension.
Add to ChromeTest your website on 3000+ real browsers and operating systems for mobile and desktop with the LambdaTest cloud. Perform browser compatibility test for flat & flatMap array methods and many more web technologies that are a part of your website or web-application.
Last Modified date
2023-03-20
Data sourced from
Debug webpages on the go with LT Debug Chrome extension.
Add to ChromeHarness the power of Chromium-based engine to deliver responsive websites and web apps.
Try for freeGet 100 minutes of automation test minutes FREE!!