Array Flashcards

1
Q

What is Array.prototype.filter useful for?

A

Creating a new array by filtering for elements that meet specified criteria.

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

What is Array.prototype.map useful for?

A

Altering the elements in an array in the same way across the board and returning the result

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

What is Array.prototype.reduce useful for?

A

Combining all values of an array into a single returned value

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