JavaScript Developer — Easy
Key points
- `flatMap()` combines mapping and flattening in one method
- It simplifies the process of transforming and flattening arrays
- The result is a one-level deep array, unlike nested arrays
- It is particularly useful for working with arrays of arrays
Ready to go further?
Related questions
