MCPcopy
hub / github.com/flightcontrolhq/superjson / forEach

Function forEach

src/util.ts:41–46  ·  view source on GitHub ↗
(
  record: Record<string, T>,
  run: (v: T, key: string) => void
)

Source from the content-addressed store, hash-verified

39}
40
41export function forEach<T>(
42 record: Record<string, T>,
43 run: (v: T, key: string) => void
44) {
45 Object.entries(record).forEach(([key, value]) => run(value, key));
46}
47
48export function includes<T>(arr: T[], value: T) {
49 return arr.indexOf(value) !== -1;

Callers 3

traverseFunction · 0.85
walkerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…