challenge-algorithms-v2.0-l.../03-maxValue/index.js

8 lines
171 B
JavaScript
Raw Normal View History

export function maxValue(values) {
// implementar logica aqui
2022-11-01 01:17:59 +00:00
let numMaior = Math.max.apply(null, values);
2022-11-01 01:17:59 +00:00
if(values.length == []) return 0;
return numMaior;
}