development #13

Merged
Rafael_Sampaio_de_Oliveira merged 22 commits from development into master 2022-11-01 16:32:59 +00:00
Showing only changes of commit 1231f40660 - Show all commits

View File

@ -1,8 +1,12 @@
export function maxValue(values) {
// implementar logica aqui
let max = values.reduce(function (a, b) {
return Math.max(a, b);
}, -Infinity);
if (values.length === 0) {
return 0;
} else {
return Math.max.apply(null, values);
return max;
}
}