MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / hasIntersection

Method hasIntersection

server/src/validator.ts:683–686  ·  view source on GitHub ↗
(left: string[], right: string[])

Source from the content-addressed store, hash-verified

681 }
682
683 private hasIntersection(left: string[], right: string[]): boolean {
684 const rightSet = new Set(right);
685 return left.some((value) => rightSet.has(value));
686 }
687
688 private flattenCollectionIds(
689 selectors: CollectionSelector[] | undefined,

Calls 1

hasMethod · 0.80

Tested by

no test coverage detected