diff --git a/03-maxValue/index.js b/03-maxValue/index.js index e433b31..e357a27 100644 --- a/03-maxValue/index.js +++ b/03-maxValue/index.js @@ -1,4 +1,9 @@ export function maxValue(values) { // implementar logica aqui - + if (values.length < 1) { + return 0; + } + const maior = Math.max(...values); + + return maior; } \ No newline at end of file