mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-25 05:29:07 -05:00
perf: replace String and Array indexOf method calls with includes method call (#55482)
This commit is contained in:
@@ -49,7 +49,7 @@ export namespace Arguments {
|
||||
|
||||
/** @internal */
|
||||
export function hasArgument(argumentName: string) {
|
||||
return sys.args.indexOf(argumentName) >= 0;
|
||||
return sys.args.includes(argumentName);
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
|
||||
Reference in New Issue
Block a user