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