Javascript – I want unique region with respective countries from the arrays of objects in TypeScript
I have below array of objects JSON. It contains regions value with regCountry with multiple occurrences of both keys. let arrOfObj = [ { "regCountry": "Germany", "region": "Europe" }, { "regCountry": "Germany", "region": "Europe" }, { "regCountry": "Spain", "region": "Europe"…