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

4 lines
122 B
JavaScript

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