reducce javacript code example
Example: reduce function javascript
array.reduce(function(acumulador, elementoAtual, indexAtual, arrayOriginal), valorInicial)
array.reduce(function(acumulador, elementoAtual, indexAtual, arrayOriginal), valorInicial)