paint-brush
Introducing the Map Method in Javascript ES6by@davidfox
507 reads
507 reads

Introducing the Map Method in Javascript ES6

by David Fox2mDecember 30th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

The map method is a part of ES6 that is especially useful for React developers. You can call array.map() on any array in your code to create a new array which is populated by'mapping' each element in array1 to array2. What actually ends up in array2 is determined by the callback function you passed into the map method as an argument. The 'map' method is really useful in React, particularly for looping over an array inside JSX. It keeps your code neat and saves you from having to call functions that exist outside of your JSX to do this.

Company Mentioned

Mention Thumbnail
featured image - Introducing the Map Method in Javascript ES6
David Fox HackerNoon profile picture
David Fox

David Fox

@davidfox

Writing Javascript, React and frontend development

About @davidfox
LEARN MORE ABOUT @DAVIDFOX'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

David Fox HackerNoon profile picture
David Fox@davidfox
Writing Javascript, React and frontend development

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Javascript
Tipsloves
Javascript
Blogspot