From 91b726984053d2e662c38206c1aa83c61d87a41a Mon Sep 17 00:00:00 2001 From: HenriqueSSan Date: Thu, 27 Oct 2022 20:44:51 -0300 Subject: [PATCH] feat(challenge-3): completed challenge --- 03-maxValue/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/03-maxValue/index.js b/03-maxValue/index.js index e433b31..a8ec540 100644 --- a/03-maxValue/index.js +++ b/03-maxValue/index.js @@ -1,4 +1,6 @@ export function maxValue(values) { // implementar logica aqui - + if(values.length === 0 || !values) return 0 + + return Math.max(...values) } \ No newline at end of file