🇭🇰Hong Kong Countrys
All 1 Hong Kong subdivisions with ISO 3166-2:HK codes - Asia / Eastern Asia
Total
1 subdivisions
Types
Country
ISO Standard
ISO 3166-2:HK
Code Example
import { subdivision } from '@koshmoney/countries';
// Get all Hong Kong subdivisions
const subs = subdivision.getByCountry('HK');
// => 1 subdivisions
// Look up a specific subdivision
subdivision.get('HK-HK');
// => { code: 'HK-HK', name: 'Hong Kong', type: 'Country' }
// Validate a subdivision code
subdivision.isValidCode('HK-HK'); // true
subdivision.isValidRegion('HK', 'HK'); // trueTree-Shaking Tip
Import only Hong Kong subdivisions to minimize bundle size:
// Import only Hong Kong subdivisions for smaller bundles
import { subdivisions } from '@koshmoney/countries/subdivision/HK';
Object.entries(subdivisions);
// => 1 entriesAll Hong Kong Countrys
| Code | Name | Type |
|---|---|---|
| HK-HK | Hong Kong | Country |
FAQ
- How many subdivisions does Hong Kong have?
- Hong Kong has 1 subdivisions defined in ISO 3166-2:HK, including 1 countrys.
- What is the ISO 3166-2 code format for Hong Kong?
- Hong Kong subdivision codes follow the format HK-XX, where HK is the country's alpha-2 code and XX is the subdivision identifier. For example, HK-HK represents Hong Kong.
- How to get Hong Kong subdivisions in JavaScript?
- Install
@koshmoney/countriesvia npm, then usesubdivision.getByCountry('HK')to get all 1 subdivisions.
Use Hong Kong subdivision data in your project
Get all 1 Hong Kong subdivisions with ISO 3166-2 codes, plus countries, currencies, postal codes, and more.
npm install @koshmoney/countries