refactor: simplify normalizeTypes function by Ayoub-Mabrouk · Pull Request #6097 · expressjs/express (original) (raw)
- 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.