array reduce mozilla code example
Example 1: .reduce mdn
arr.reduce(callback( accumulator, currentValue[, index[, array]] )[, initialValue])
Example 2: reduce mdn
array.reduce(callback( accumulator, valueNow[, index[, array]] )[, initialValue]))