array-methods Flashcards

1
Q

What is Array.prototype.filter useful for?

A

return an array of a specific filter case

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

return a new array- apply specific condition to all the elements in an array

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 elements in an array and returning a single value

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