From e3124dd467807393d7861c533d2f75a0619bcf1a Mon Sep 17 00:00:00 2001 From: WillSimao Date: Sat, 29 Oct 2022 07:42:54 -0300 Subject: [PATCH] feat(sum): Finaliza algoritmo --- 06-sum/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/06-sum/index.js b/06-sum/index.js index ebc2ee1..4c0b742 100644 --- a/06-sum/index.js +++ b/06-sum/index.js @@ -1,4 +1,4 @@ export function sum(values) { // implementar logica aqui - + return values.reduce((firstValue, secondValue) => firstValue + secondValue, 0) } \ No newline at end of file