2022-10-27 15:07:13 +00:00
|
|
|
export function maxValue(values) {
|
|
|
|
// implementar logica aqui
|
2022-10-28 11:06:45 +00:00
|
|
|
if (values.length) {
|
|
|
|
let max = -Infinity;
|
|
|
|
|
|
|
|
for (let num of values) {
|
|
|
|
max = num > max ? num : max;
|
|
|
|
}
|
|
|
|
return max;
|
|
|
|
}
|
|
|
|
return 0;
|
2022-10-27 15:07:13 +00:00
|
|
|
}
|