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

6 lines
148 B
JavaScript
Raw Normal View History

export function sum(values) {
// implementar logica aqui
return values.reduce((totalnum, atualnum) => {
return totalnum + atualnum
}, 0)
}