array-map Flashcards

1
Q

What is Array.prototype.map useful for?

A

When we want a new array with each element being the result of the callback function.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly