Closed matheus-rodrigues00 closed 1 year ago
Create a new method called max. This method should compute the maximum value of an array. If the array is empty or falsy, it should return undefined.
function max(arr: number[] | undefined): number | undefined { // Implementation goes here }
Close by PR #54
Create a new method called max. This method should compute the maximum value of an array. If the array is empty or falsy, it should return undefined.