Continents Data
Get All Continents
This gives you an array of all contients.
ES6 Module
continents.ts
import { Continents } from 'countries-geo';
console.log(Continents.getAll);
// Logs all continents (e.g., [{ iso: "AF", name: "Africa" }, ...])
By default this is sorted by name.
Get All Continents sorted by isoCode
This gives you an array of all contients specifically sorted by isoCode.
ES6 Module
continents.ts
import { Continents } from 'countries-geo';
console.log(Continents.sortByIsoCode);
// Logs all continents (e.g., [{ iso: "AF", name: "Africa" }, ...])
By default this is sorted by iso.
Last updated on