mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-03-15 14:05:47 -05:00
perf: replace String and Array indexOf method calls with includes method call (#55482)
This commit is contained in:
@@ -71,7 +71,7 @@ async function checkSourceFiles() {
|
||||
let count = 0;
|
||||
console.log("== List of errors not used in source ==");
|
||||
for (const errName of errorNames) {
|
||||
if (allSrc.indexOf(errName) < 0) {
|
||||
if (!allSrc.includes(errName)) {
|
||||
console.log(errName);
|
||||
count++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user