MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / isPrefixOf

Function isPrefixOf

apps/cli/src/tooling.ts:32–33  ·  view source on GitHub ↗
(prefix: ReadonlyArray<string>, path: ReadonlyArray<string>)

Source from the content-addressed store, hash-verified

30 .filter((segment) => segment.length > 0);
31
32const isPrefixOf = (prefix: ReadonlyArray<string>, path: ReadonlyArray<string>): boolean =>
33 prefix.every((segment, index) => path[index] === segment);
34
35export interface ToolPathChildEntry {
36 readonly segment: string;

Callers 1

inspectToolPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected