forked from M3-Academy/challenge-algorithms-v2.0
Merge branch 'feature/sumEven' into development
This commit is contained in:
commit
2911f7336b
@ -1,4 +1,6 @@
|
||||
export function sumEven(value) {
|
||||
// implementar logica aqui
|
||||
|
||||
return value.reduce((somaTotal, numeroAtual) => {
|
||||
return numeroAtual % 2 == 0 ? somaTotal + numeroAtual : somaTotal
|
||||
},0)
|
||||
}
|
Loading…
Reference in New Issue
Block a user