Change usage of String.prototype.startsWith to ts.startsWith.

This commit is contained in:
Jordi Oliveras Rovira
2018-12-09 20:21:45 +01:00
parent f41b4e088d
commit 3d23e7a0a4

View File

@@ -148,8 +148,7 @@ namespace ts {
}
export function isJsPrivate(name: string): boolean {
return name.startsWith("_");
}
return startsWith(name, "_"); }
function tryRequire(fileNameToRequire: string): unknown {
try {