develop #11

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

View File

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