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

Function isAnyDirectorySeparator

test/fixtures/snapshot/typescript.js:7551–7553  ·  view source on GitHub ↗

* Determines whether a charCode corresponds to `/` or `\`.

(charCode)

Source from the content-addressed store, hash-verified

7549 * Determines whether a charCode corresponds to `/` or `\`.
7550 */
7551 function isAnyDirectorySeparator(charCode) {
7552 return charCode === 47 /* CharacterCodes.slash */ || charCode === 92 /* CharacterCodes.backslash */;
7553 }
7554 ts.isAnyDirectorySeparator = isAnyDirectorySeparator;
7555 /**
7556 * Determines whether a path starts with a URL scheme (e.g. starts with `http://`, `ftp://`, `file://`, etc.).

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected