develop #11

Merged
HenriqueSantosSantana merged 20 commits from develop into master 2022-10-28 01:03:41 +00:00
Showing only changes of commit cf4ef58cce - Show all commits

View File

@ -1,4 +1,13 @@
export function sumEven(value) {
// implementar logica aqui
}
if (value.length === 0 || !value) return 0;
// acc é abreviação de accumulator(acumulador)
return value.reduce((acc, number) => {
if (number % 2 === 0) {
return (acc += number);
}else {
return acc += 0
}
}, 0);
}