Array Reduce Flashcards

1
Q

What is Array.prototype.reduce useful for?

A

The reduce() method executes a reducer function (that you provide) on each element of the array, resulting in single output value.

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