feature/algorithms #1

Merged
Vitor_soares merged 10 commits from feature/algorithms into master 2022-10-28 23:12:43 +00:00
Showing only changes of commit 42f653c394 - Show all commits

View File

@ -1,4 +1,8 @@
export function sumEven(value) {
// implementar logica aqui
return value.filter((number) => {
if(number % 2 == 0) return number;
}).reduce((ac, number) => {
return ac += number;
}, 0);
}