forked from M3-Academy/challenge-algorithms-v2.0
feat(maxValue): funcao feita
This commit is contained in:
parent
b043539824
commit
dfd7c0129a
@ -1,4 +1,7 @@
|
||||
export function maxValue(values) {
|
||||
// implementar logica aqui
|
||||
|
||||
if(values.length === 0) {
|
||||
return 0;
|
||||
}
|
||||
return Math.max(...values);
|
||||
}
|
Loading…
Reference in New Issue
Block a user