Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

btea
Copy link
Member

@btea btea commented Aug 26, 2025

Using startswith is more efficient than using indexOf to determine whether the subscript is 0. link

@btea btea requested a review from zkochan as a code owner August 26, 2025 01:21
@zkochan zkochan merged commit a42e9ff into pnpm:main Aug 26, 2025
28 of 35 checks passed
@btea btea deleted the perf/replace-indexOf-with-startsWith branch August 26, 2025 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.