MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / intersects

Function intersects

source code/utils/set.ts:19–29  ·  view source on GitHub ↗
(a: Set<A>, b: Set<A>)

Source from the content-addressed store, hash-verified

17 * Note: this code is hot, so is optimized for speed.
18 */
19export function intersects<A>(a: Set<A>, b: Set<A>): boolean {
20 if (a.size === 0 || b.size === 0) {
21 return false
22 }
23 for (const item of a) {
24 if (b.has(item)) {
25 return true
26 }
27 }
28 return false
29}
30
31/**
32 * Note: this code is hot, so is optimized for speed.

Callers

nothing calls this directly

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected