2022-10-27 15:07:13 +00:00
|
|
|
export function maxValue(values) {
|
|
|
|
// implementar logica aqui
|
2022-10-28 23:00:45 +00:00
|
|
|
|
|
|
|
let maxValor = Math.max(...values);
|
|
|
|
if (values == `${[]}`) {
|
|
|
|
return 0;
|
|
|
|
} else {
|
|
|
|
return maxValor;
|
|
|
|
}
|
|
|
|
|
2022-10-27 15:07:13 +00:00
|
|
|
|
2022-10-28 23:00:45 +00:00
|
|
|
}
|