Skip to content
New issue

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 max Method #50

Closed
matheus-rodrigues00 opened this issue Sep 11, 2023 · 1 comment
Closed

Create max Method #50

matheus-rodrigues00 opened this issue Sep 11, 2023 · 1 comment
Labels
good first issue Good for newcomers numbers Related to the numbers.ts module

Comments

@matheus-rodrigues00
Copy link
Owner

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
}
@matheus-rodrigues00 matheus-rodrigues00 added good first issue Good for newcomers numbers Related to the numbers.ts module labels Sep 11, 2023
@matheus-rodrigues00
Copy link
Owner Author

Close by PR #54

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers numbers Related to the numbers.ts module
Projects
None yet
Development

No branches or pull requests

1 participant