challenge-algorithms-v2.0-n.../06-sum/index.js

6 lines
144 B
JavaScript
Raw Normal View History

export function sum(values) {
// implementar logica aqui
2022-10-28 18:00:19 +00:00
return values.reduce((somatorio, valor) => {
return somatorio + valor
}, 0)
}