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

    Function getLocalLevelByName

    • Finds a specific local level by its unique ID.

      Parameters

      • localLevel: string

        The name 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