Duplicate data from API
I’m fetching countries from the REST Countries API and displaying their regions in a dropdown.
Problem: every country comes with its region, so I keep getting repeated values like "Africa" 50+ times.
How do I display unique regions only?
Problem: every country comes with its region, so I keep getting repeated values like "Africa" 50+ times.
How do I display unique regions only?


