feat(masValue): exercicio resolvido

This commit is contained in:
peocz95@gmail.com 2022-11-02 18:02:41 -03:00
parent 3a73f52409
commit 32a0725f3a

View File

@ -1,8 +1,10 @@
export function maxValue(values) {
// implementar logica aqui
/* if(values = []) {
return 0;*/
if(values.length === 0) {
return 0;
}else{
return Math.max.apply(null, values);
}
}