The type of the object being iterated.
The object to iterate over.
A function to be called for each key-value pair. Receives the key, value, and the original object as arguments.
Optionaloptions: { recursive?: boolean }Optional settings for the iteration.
Optionalrecursive?: booleanIf true, the function will recursively iterate over nested objects. Defaults to false.
Iterates over the properties of an object and invokes a callback function for each key-value pair. Optionally, the iteration can be performed recursively for nested objects.