Finds a specific district by its unique ID.
The unique ID of the district.
The district object if found, otherwise undefined.
import { getDistrictById } from 'nepali-address';const district = getDistrictById(306);// → { id: 306, name: 'Kathmandu', ... }const missing = getDistrictById(999);// → undefined Copy
import { getDistrictById } from 'nepali-address';const district = getDistrictById(306);// → { id: 306, name: 'Kathmandu', ... }const missing = getDistrictById(999);// → undefined
Finds a specific district by its unique ID.