forked from M3-Academy/challenge-algorithms-v2.0
Feat(Desafio_2.3): Cria resposta desafio 2.3
This commit is contained in:
parent
012ea8f688
commit
b27cae8795
@ -1,4 +1,9 @@
|
||||
export function maxValue(values) {
|
||||
// implementar logica aqui
|
||||
|
||||
if(values.length > 0){
|
||||
return Math.max.apply(null, values);
|
||||
}
|
||||
else{
|
||||
return 0;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user