array-filter/array-map Flashcards

1
Q

When would Array.prototype.filter be useful?

A

When pulling out certain values from an array that meet a specific condition created

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

When would Array.prototype.map be useful?

A

When we want to modify values in an existing array

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