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
2
Q
When would Array.prototype.map be useful?
A
When we want to modify values in an existing array