Skip to content

refactor: replace includes with logical operations#17620

Merged
bluwy merged 1 commit into
vitejs:mainfrom
btea:refactor/replace-includes
Jul 15, 2024
Merged

refactor: replace includes with logical operations#17620
bluwy merged 1 commit into
vitejs:mainfrom
btea:refactor/replace-includes

Conversation

@btea

@btea btea commented Jul 6, 2024

Copy link
Copy Markdown
Contributor

Description

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

Loading
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