From e7260ebf672506fb5c75c11092e255e3e7285da1 Mon Sep 17 00:00:00 2001 From: wellington carlos Date: Fri, 28 Oct 2022 20:13:28 -0300 Subject: [PATCH] (feat)finalizando teste 03 maxValue --- 03-maxValue/index.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/03-maxValue/index.js b/03-maxValue/index.js index e433b31..faa5d6e 100644 --- a/03-maxValue/index.js +++ b/03-maxValue/index.js @@ -1,4 +1,11 @@ export function maxValue(values) { - // implementar logica aqui - + if (values == `${[]}`) { + return 0 + + } else { + + return Math.max.apply(null, values); + + } + } \ No newline at end of file