From 961116c5b291c453eda450473637980a0de38653 Mon Sep 17 00:00:00 2001 From: Gabriel Bernardini Date: Sat, 29 Oct 2022 12:21:29 -0300 Subject: [PATCH] =?UTF-8?q?feat(maxvalue):aplicando=20a=20fun=C3=A7=C3=A3o?= =?UTF-8?q?=20do=20teste=203?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 03-maxValue/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/03-maxValue/index.js b/03-maxValue/index.js index e433b31..9a41482 100644 --- a/03-maxValue/index.js +++ b/03-maxValue/index.js @@ -1,4 +1,8 @@ export function maxValue(values) { // implementar logica aqui + if (values == 0 ) return 0 + else { + return Math.max (...values) + } } \ No newline at end of file