MCPcopy Index your code
hub / github.com/rtfpessoa/diff2html / startsWithAny

Function startsWithAny

src/diff-parser.ts:17–19  ·  view source on GitHub ↗
(str: string, prefixes: string[])

Source from the content-addressed store, hash-verified

15}
16
17function startsWithAny(str: string, prefixes: string[]): boolean {
18 return prefixes.reduce<boolean>((startsWith, prefix) => startsWith || str.startsWith(prefix), false);
19}
20
21const baseDiffFilenamePrefixes = ['a/', 'b/', 'i/', 'w/', 'c/', 'o/'];
22function getFilename(line: string, linePrefix?: string, extraPrefix?: string): string {

Callers 1

createLineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…