Typescript Loop Through An Hashmap Internally Works