feat(maxValue): Implementa função maxValue

This commit is contained in:
danielmoliaribarbosa 2022-10-28 14:50:35 -03:00
parent 5cf92a84c1
commit d377a0c420

View File

@ -1,4 +1,8 @@
export function maxValue(values) {
// implementar logica aqui
let maxV = Math.max(...values);
if(!values.length){
maxV = 0;
}
return maxV;
}