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

Reviewed-on: #6
This commit is contained in:
Nicolly Vieira Santos Costa 2022-10-28 18:01:00 +00:00
commit e92bfc7d68

View File

@ -1,4 +1,6 @@
export function sum(values) { export function sum(values) {
// implementar logica aqui // implementar logica aqui
return values.reduce((somatorio, valor) => {
return somatorio + valor
}, 0)
} }