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.
Web Development > Array Reduce > Flashcards
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.