Skip to content

refactor: replace includes with logical operations #17620

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
Jul 15, 2024

Conversation

btea
Copy link
Collaborator

@btea btea commented Jul 6, 2024

Description

When the array contents are relatively small, using string comparison directly seems to be more efficient than calling includes. test case

Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@patak-dev patak-dev added the p2-nice-to-have Not breaking anything but nice to have (priority) label Jul 8, 2024
@bluwy bluwy merged commit c4a2227 into vitejs:main Jul 15, 2024
11 checks passed
@btea btea deleted the refactor/replace-includes branch July 15, 2024 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p2-nice-to-have Not breaking anything but nice to have (priority)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants