Transforming with map()
The map() method creates a new array by transforming each element. It's the most common way to reshape JSON data.
Basic map() Usage
Transforming Objects
Extract or reshape object properties:
Using Index Parameter
Nested Transformations
Exercise: Extract Names
Exercise: Calculate New Values
Key Points
map()returns a new array (doesn't modify original)- Transform each element with a callback function
- Access index as second parameter
- Use spread operator to copy and extend objects
- Chain with other array methods

