Typescript Loop Through Object Entries In Javascript The Statement