MCPcopy
hub / github.com/jimp-dev/jimp / hashForEach

Function hashForEach

packages/test-utils/src/index.ts:6–14  ·  view source on GitHub ↗
(
  hash: Hash,
  func: (key: keyof Hash, value: Hash[keyof Hash]) => void,
)

Source from the content-addressed store, hash-verified

4
5// eslint-disable-next-line @typescript-eslint/no-explicit-any
6export function hashForEach<Hash extends Record<string, any>>(
7 hash: Hash,
8 func: (key: keyof Hash, value: Hash[keyof Hash]) => void,
9) {
10 for (const key in hash)
11 if (key in hash) {
12 func(key, hash[key]);
13 }
14}
15
16function throwUndefinedChar(char: string) {
17 const cList: string[] = [];

Callers 2

throwUndefinedCharFunction · 0.85
testImgToStrFunction · 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…