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

4 lines
141 B
JavaScript
Raw Normal View History

export function sum(values) {
// implementar logica aqui
2022-10-29 10:42:54 +00:00
return values.reduce((firstValue, secondValue) => firstValue + secondValue, 0)
}