Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private setCountries() {
const obj = reduce(getDataSet(), 'en');
this.countries = Object.keys(obj).map(key => obj[key])
.sort((a, b) => a.name < b.name ? -1 : a.name > b.name ? 1 : 0);
}