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

6 lines
136 B
JavaScript
Raw Normal View History

export function sum(values) {
// implementar logica aqui
2022-10-28 13:09:51 +00:00
let sum = values.reduce((sum, number) => sum + number, 0);
return sum;
}