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

4 lines
122 B
JavaScript
Raw Normal View History

export function sum(values) {
// implementar logica aqui
2022-10-31 16:56:52 +00:00
return values.reduce((total, values) => total + values, 0);
}