How to use iso3166-2-db - 1 common examples

To help you get started, we’ve selected a few iso3166-2-db examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github particl / particl-desktop / src / app / core / market / api / countrylist / countrylist.service.ts View on Github external
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);
  }

iso3166-2-db

Provides information about countries and states of the world.

MIT
Latest version published 5 months ago

Package Health Score

65 / 100
Full package analysis

Popular iso3166-2-db functions