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

    Function getLocalLevelById

    • Finds a specific local level by its unique ID.

      Parameters

      • id: number

        The unique ID of the local level.

      Returns LocalLevel | undefined

      The local level object if found, otherwise undefined.

      import { getLocalLevelById } from 'nepali-address';

      const district = getLocalLevelById(10101);
      // → { id: 10101, name: 'Phaktanglung', ... }

      const missing = getLocalLevelById(1999);
      // → undefined