DEV Community

Discussion on: Useful JS functions you aren't using: Array.map

Collapse
 
mantasmarcinkus profile image
Mantas Marcinkus

Just an addition to your article that I missed. One of the most important .map properties is that it returns a new array, it doesn't mutate current array. This is particularly useful in React/Redux, or where you want your objects to safely persist state.