Array Reduce Flashcards
(1 cards)
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.
What is Array.prototype.reduce useful for?
The reduce() method executes a reducer function (that you provide) on each element of the array, resulting in single output value.