feat: finalizado sumEven

This commit is contained in:
Vitor Soares 2022-10-28 12:00:57 -03:00
parent 8134411c16
commit 42f653c394

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);
}