Merge pull request 'feat: solucao sum' (#6) from feature/solucao-sum into development

Reviewed-on: #6
This commit is contained in:
Rafael Sampaio de Oliveira 2022-10-28 13:11:05 +00:00
commit af058b050b

View File

@ -1,4 +1,5 @@
export function sum(values) {
// implementar logica aqui
}
let sum = values.reduce((sum, number) => sum + number, 0);
return sum;
}