express
express copied to clipboard
Refactor req.is for cleaner argument handling
- Simplified the logic for accepting both array and flattened arguments.
- Used Array.from for improved readability and conciseness.
Related: https://github.com/expressjs/express/pull/6093