forked from M3-Academy/challenge-algorithms-v2.0
8 lines
171 B
JavaScript
8 lines
171 B
JavaScript
export function maxValue(values) {
|
|
// implementar logica aqui
|
|
let numMaior = Math.max.apply(null, values);
|
|
|
|
if(values.length == []) return 0;
|
|
|
|
return numMaior;
|
|
} |