( hash: Hash, func: (key: keyof Hash, value: Hash[keyof Hash]) => void, )
| 4 | |
| 5 | // eslint-disable-next-line @typescript-eslint/no-explicit-any |
| 6 | export 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 | |
| 16 | function throwUndefinedChar(char: string) { |
| 17 | const cList: string[] = []; |
no outgoing calls
no test coverage detected
searching dependent graphs…