typescript loop through object properties code example
Example: object iteration in typescript
Object.entries(obj).forEach(
([key, value]) => console.log(key, value);
);
Object.entries(obj).forEach(
([key, value]) => console.log(key, value);
);