challenge-algorithms-v2.0-e.../06-sum/index.js
2022-10-29 14:37:02 -03:00

4 lines
111 B
JavaScript

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