Typescript Get Distinct Values From Object Array Iterator Javascript