MCPcopy Create free account
hub / github.com/effector/effector / forIn

Function forIn

src/effector/collection.ts:1–8  ·  view source on GitHub ↗
(
  obj: Record<Key, T>,
  cb: (value: T, key: Key) => void,
)

Source from the content-addressed store, hash-verified

1export function forIn<T, Key extends string = string>(
2 obj: Record<Key, T>,
3 cb: (value: T, key: Key) => void,
4) {
5 for (const key in obj) {
6 cb(obj[key], key)
7 }
8}
9
10export const includes = <T>(list: T[], item: T) => list.includes(item)
11

Callers 8

splitFunction · 0.90
createDomainFunction · 0.90
flattenConfigFunction · 0.90
restoreFunction · 0.90
storeCombinationFunction · 0.90
unitObjectNameFunction · 0.90
createApiFunction · 0.90
serializeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…