How to Dynamically Assign Properties to an Object in TypeScript | CodeTrail