feat: solucao sum

This commit is contained in:
Rafael Sampaio de Oliveira 2022-10-28 10:09:51 -03:00
parent c6f6df9c59
commit d4646cd89e

View File

@ -1,4 +1,5 @@
export function sum(values) {
// implementar logica aqui
}
let sum = values.reduce((sum, number) => sum + number, 0);
return sum;
}