2022-10-27 15:07:13 +00:00
|
|
|
export function maxValue(values) {
|
|
|
|
// implementar logica aqui
|
2022-10-28 14:45:34 +00:00
|
|
|
if(values.length == 0) return 0;
|
|
|
|
|
|
|
|
return values.reduce((ac, value) => {
|
|
|
|
if(ac > value) return ac;
|
|
|
|
return value
|
|
|
|
}, );
|
2022-10-27 15:07:13 +00:00
|
|
|
}
|