forked from M3-Academy/challenge-algorithms-v2.0
feat(maxValue): algoritmo criado.
This commit is contained in:
parent
78adf6560d
commit
df0dc72968
@ -1,4 +1,8 @@
|
||||
export function maxValue(values) {
|
||||
// implementar logica aqui
|
||||
let numMaior = Math.max.apply(null, values);
|
||||
|
||||
if(values.length == []) return 0;
|
||||
|
||||
return numMaior;
|
||||
}
|
Loading…
Reference in New Issue
Block a user