forked from M3-Academy/challenge-algorithms-v2.0
feat(challenge): desafio max value finalizado
This commit is contained in:
parent
5646bcee3f
commit
5d039c3c43
@ -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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user