forked from M3-Academy/challenge-algorithms-v2.0
8 lines
170 B
JavaScript
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;
|
|
} |