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

    Function getProvinceById

    • Finds a specific province by its unique identifier.

      Parameters

      • id: number

        The unique ID of the province (1-7).

      Returns Province | undefined

      The province object if found, otherwise undefined.

      import { getProvinceById } from 'nepali-address';

      const province = getProvinceById(3);
      // → { id: 3, name: 'Bagmati Province', ... }

      const missing = getProvinceById(99);
      // → undefined