PakDataKit - v2.2.0
    Preparing search index...

    Function formatPhoneInput

    • Formats a Pakistani mobile number as the user types: 0300-1234567, or +92 300 1234567 when the user starts with the country code.

      Parameters

      • value: string

        Current input value

      Returns string

      Value to show in the input