We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 }
The text was updated successfully, but these errors were encountered:
Close by PR #54
Sorry, something went wrong.
No branches or pull requests
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.
The text was updated successfully, but these errors were encountered: