Typescript Loop Through Object Js