DEV Community

Charlotte Fereday
Charlotte Fereday

Posted on

Visualising documentation: JavaScript

Alt Text

Today’s function is, mdn description here.

Map applies the function it's given to every element in the array, and returns a new array with each transformed element inside it.

It's interesting to consider when to use map vs other core functions that could have the same effect, for example array.from(). Would welcome comments on trade offs.

I've done my own version of the docs with sketches together. Here’s the folder for Check out the readme to see how you can run the examples.

Top comments (0)