Posts by João Garcez • 1 point
1 post
-
0
votes2
answers707
viewsA: Get maximum, average and minimum value on a JSON of an object array
function media(array){ var somaDosSalarios = 0; array.forEach( item => somaDosSalarios+=item.salario); return somaDosSalarios /…