assign properties by iterating using object.keys js code example
Example: loop an object properties in ts
Object.keys(obj).forEach(e => console.log(`key=${e} value=${obj[e]}`));
Object.keys(obj).forEach(e => console.log(`key=${e} value=${obj[e]}`));