MCPcopy Index your code
hub / github.com/nodejs/node / startsWith

Function startsWith

test/fixtures/snapshot/typescript.js:2416–2418  ·  view source on GitHub ↗
(str, prefix)

Source from the content-addressed store, hash-verified

2414 }
2415 ts.findBestPatternMatch = findBestPatternMatch;
2416 function startsWith(str, prefix) {
2417 return str.lastIndexOf(prefix, 0) === 0;
2418 }
2419 ts.startsWith = startsWith;
2420 function removePrefix(str, prefix) {
2421 return startsWith(str, prefix) ? str.substr(prefix.length) : str;

Callers 3

removePrefixFunction · 0.70
tryRemovePrefixFunction · 0.70
isPatternMatchFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…