Loop Through Object Typescript Compiler