Skip to content

refactor: simplify normalizeTypes function #6097

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

Merged
merged 1 commit into from
Feb 4, 2025

Conversation

Ayoub-Mabrouk
Copy link
Contributor

@Ayoub-Mabrouk Ayoub-Mabrouk commented Oct 29, 2024

  • Replaced the manual for loop with Array.map for better readability and conciseness.
  • The new implementation directly maps each element in the input array to the normalized output, improving code clarity.
  • This change maintains the same functionality while leveraging built-in array methods for cleaner code.

Related: #6093

- Replaced the manual for loop with Array.map for better readability and conciseness.
- The new implementation directly maps each element in the input array to the normalized output, improving code clarity.
- This change maintains the same functionality while leveraging built-in array methods for cleaner code.
Copy link
Member

@wesleytodd wesleytodd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is an alright change.

@UlisesGascon UlisesGascon changed the title refactor: simplify normalizeTypes function refactor: simplify normalizeTypes function Feb 4, 2025
@UlisesGascon UlisesGascon merged commit 511d9df into expressjs:master Feb 4, 2025
21 checks passed
@bjohansebas bjohansebas mentioned this pull request Mar 15, 2025
@UlisesGascon UlisesGascon mentioned this pull request Mar 23, 2025
68 tasks
@wesleytodd wesleytodd mentioned this pull request Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants