MapInPlace
DRAFT

Misconception:

Calling map on an array modifies the elements of that array in place, overwriting the previous values with the results of the supplied callback function.

Incorrect

Map modifies the elements of the array on which it operates in place

Correct

Map returns a new array populated with the results of the callback function

Language

JavaScript

Concepts

Stay up-to-date

Follow us on  twitter to hear about new misconceptions.