feat(maxValue): funcao feita

This commit is contained in:
Nicolly Vieira Santos Costa 2022-10-28 14:50:33 -03:00
parent b043539824
commit dfd7c0129a

View File

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