@xdimax
Swiss knife for working with arrays. Method reduce()
The reduce method collapses the array to one value (reducts) e using the passed colback function and the initial value. The callback function will be called for each element of the array, and should always return the result