Merge branch 'feature/sumEven' into development

This commit is contained in:
Gabriel Ferreira Lehmann 2022-10-30 01:22:28 -03:00
commit 2911f7336b

View File

@ -1,4 +1,6 @@
export function sumEven(value) {
// implementar logica aqui
return value.reduce((somaTotal, numeroAtual) => {
return numeroAtual % 2 == 0 ? somaTotal + numeroAtual : somaTotal
},0)
}