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

Function hasExtension

test/fixtures/snapshot/typescript.js:7612–7614  ·  view source on GitHub ↗
(fileName)

Source from the content-addressed store, hash-verified

7610 }
7611 ts.pathIsBareSpecifier = pathIsBareSpecifier;
7612 function hasExtension(fileName) {
7613 return ts.stringContains(getBaseFileName(fileName), ".");
7614 }
7615 ts.hasExtension = hasExtension;
7616 function fileExtensionIs(path, extension) {
7617 return path.length > extension.length && ts.endsWith(path, extension);

Callers

nothing calls this directly

Calls 1

getBaseFileNameFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…