Skip to content

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

3 participants