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

Function difference

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

Source from the content-addressed store, hash-verified

4 * Note: this code is hot, so is optimized for speed.
5 */
6export function difference<A>(a: Set<A>, b: Set<A>): Set<A> {
7 const result = new Set<A>()
8 for (const item of a) {
9 if (!b.has(item)) {
10 result.add(item)
11 }
12 }
13 return result
14}
15
16/**
17 * Note: this code is hot, so is optimized for speed.

Callers

nothing calls this directly

Calls 2

hasMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected