.flatMap()
Term side of the Card
Topic: Array
Unit title: .flatMap()
Categories: Method
Explanation side of the Card
Explanation: The method that first maps each element in an array, using a mapping function and then flattens the result by one level. It combines the effects of `.map()` and `.flat()` methods into one operation.
Browser compatibility:
- The chrome browser supports this feature starting from version 69
- The edge browser supports this feature starting from version 79
- The firefox browser supports this feature starting from version 62
- The safari browser supports this feature starting from version 12
Availability: