array-map Flashcards
(1 cards)
1
Q
What is Array.prototype.map useful for?
A
The map() method creates a new array populated with the results of calling a provided function on every element in the calling array.
What is Array.prototype.map useful for?
The map() method creates a new array populated with the results of calling a provided function on every element in the calling array.