Typescript Loop Through An Hashmap Internally Uses