forked from M3-Academy/challenge-algorithms-v2.0
Merge pull request 'Feat(Desafio_2.3): Cria resposta desafio 2.3' (#3) from Feature/Desafio_2.3 into develop
Reviewed-on: #3
This commit is contained in:
commit
189b6f23a2
@ -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