MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / buildLookup

Function buildLookup

web/src/js/ducks/flows/_utils.ts:10–12  ·  view source on GitHub ↗
(data: T[])

Source from the content-addressed store, hash-verified

8}
9
10export function buildLookup<T extends Item>(data: T[]): Set<string> {
11 return new Set(data.map((f) => f.id));
12}
13
14export function withElemRemoved<K>(set: Set<K>, key: K): Set<K> {
15 if (set.has(key)) {

Callers 2

flowsReducerFunction · 0.90
_utilsSpec.tsFile · 0.90

Calls 1

mapMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…