Skip to content

Commit 3d23e7a

Browse files
committed
Change usage of String.prototype.startsWith to ts.startsWith.
1 parent f41b4e0 commit 3d23e7a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/compiler/inspectValue.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,7 @@ namespace ts {
148148
}
149149

150150
export function isJsPrivate(name: string): boolean {
151-
return name.startsWith("_");
152-
}
151+
return startsWith(name, "_"); }
153152

154153
function tryRequire(fileNameToRequire: string): unknown {
155154
try {

0 commit comments

Comments
 (0)