javascript · Javascript Basics
What does the 'map' method do in JavaScript?
Answers
- Maps a value to a key in an object
- Creates a new array with the results of calling a function for every array element
- Applies a function against an accumulator and each element in the array (from left to right)
- Searches for elements in an array that match a condition