nepali-address - v1.0.5
    Preparing search index...

    Function getDistrictById

    • Finds a specific district by its unique ID.

      Parameters

      • id: number

        The unique ID of the district.

      Returns District | undefined

      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