challenge-algorithms-v2.0-t.../03-maxValue/index.js
2022-10-28 23:49:40 -03:00

8 lines
170 B
JavaScript

export function maxValue(values) {
// implementar logica aqui
let result = Math.max.apply(null, values)
if (result < -1){
return 0;
}
return result;
}