From 67b64bc155535aa5a9d940f07abc0dc1f20112e5 Mon Sep 17 00:00:00 2001 From: Matheus Brollo Dauter Date: Mon, 31 Oct 2022 14:43:37 -0300 Subject: [PATCH] refactor(06): deleting lines --- 06-sum/index.js | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/06-sum/index.js b/06-sum/index.js index 7f49509..ce8b529 100644 --- a/06-sum/index.js +++ b/06-sum/index.js @@ -1,15 +1,9 @@ export function sum(values) { // implementar logica aqui - if (toString.call(values) !== "[object Array]") - return false; - - var total = 0; - for(var i=0;i