The type of the object's properties.
The object to iterate over.
The function to apply to each keyvalue pair.
The function to retrieve the keys of the object.
The original object.
const myObject = { a: 1, b: 2, c: 3 };
objForEach(myObject, (value, key) => {
//=> ${key}: ${value}
});
Generated using TypeDoc
Applies a callback function to each key-value pair in an object.