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

4 lines
141 B
JavaScript

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