develop #11

Merged
nicolasrosadeoliveira merged 20 commits from develop into master 2022-10-29 19:56:35 +00:00
Showing only changes of commit c41098172f - Show all commits

View File

@ -1,4 +1,13 @@
export function sum(values) { export function sum(values) {
// implementar logica aqui // implementar logica aqui
if (values.length === 0) {
return 0;
}
let sum = values.reduce(function(accumulator,value){
return accumulator + value;
})
return sum
} }