2022-10-27 15:07:13 +00:00
|
|
|
export function maxValue(values) {
|
|
|
|
// implementar logica aqui
|
2022-10-28 11:35:13 +00:00
|
|
|
if (values != `${[]}`) {
|
|
|
|
let max = values.reduce(function (a, b) {
|
|
|
|
return Math.max(a, b);
|
|
|
|
}, -Infinity);
|
|
|
|
return max;
|
|
|
|
} else {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|