Typescript Select Distinct From Array To Hashmap Internally Works