challenge-algorithms-v2.0-t.../03-maxValue/index.js

8 lines
170 B
JavaScript
Raw Normal View History

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