.reduce() (JavaScript)
.reduce() boils an array down to a single value by running a function that accumulates a result as it walks through each element.
.reduce() boils an array down to a single value by running a function that accumulates a result as it walks through each element.