diff --git a/03-maxValue/index.js b/03-maxValue/index.js index e433b31..867d8d6 100644 --- a/03-maxValue/index.js +++ b/03-maxValue/index.js @@ -1,4 +1,8 @@ export function maxValue(values) { // implementar logica aqui - + let result = Math.max.apply(null, values) + if (result < -1){ + return 0; + } + return result; } \ No newline at end of file