Skip to content

perf: replace startsWith with strict equality#308

Merged
alexander-akait merged 1 commit intopostcss:masterfrom
btea:perf/replace-startsWith-with-strict-equality
Sep 9, 2025
Merged

perf: replace startsWith with strict equality#308
alexander-akait merged 1 commit intopostcss:masterfrom
btea:perf/replace-startsWith-with-strict-equality

Conversation

@btea
Copy link
Contributor

@btea btea commented Sep 9, 2025

When determining the value of the first letter of a string, using strict equality is more efficient than startsWith. refer to link

@alexander-akait alexander-akait merged commit 3da25fe into postcss:master Sep 9, 2025
6 checks passed
@alexander-akait
Copy link
Collaborator

Thanks

@btea btea deleted the perf/replace-startsWith-with-strict-equality branch September 9, 2025 11:55
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