- forEach<T, K>(obj: T, fn: ((value: T[K], key: K, object: T) => void)): void
-
Type Parameters
-
T extends Record<string, unknown>
-
K extends string | number | symbol
Parameters
-
obj: T
-
fn: ((value: T[K], key: K, object: T) => void)
-
- (value: T[K], key: K, object: T): void
-
Parameters
-
value: T[K]
-
key: K
-
object: T
Returns void
Returns void
Iterates the object by keys
Example