feat(maxValue): implementa funcao maxValue
This commit is contained in:
parent
8a5f3aac34
commit
f69a2ad837
@ -1,4 +1,6 @@
|
|||||||
export function maxValue(values) {
|
export function maxValue(values) {
|
||||||
// implementar logica aqui
|
// implementar logica aqui
|
||||||
|
if(values.length > 0)
|
||||||
|
return Math.max.apply(null,values);
|
||||||
|
return 0;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user