development #11

Merged
NicollyVieira merged 20 commits from development into master 2022-10-28 18:16:57 +00:00
Showing only changes of commit 638cf3363d - Show all commits

View File

@ -1,4 +1,8 @@
export function sumEven(value) { export function sumEven(value) {
// implementar logica aqui // implementar logica aqui
const numerosPares = value.filter(valor => (valor % 2) == 0)
return numerosPares.reduce((somatorio, par) => {
return somatorio + par
}, 0)
} }