PakDataKit - v2.2.0
    Preparing search index...

    Function checkPhoneInput

    • Checks a Pakistani mobile number while the user is typing. The 03XX prefix is checked as soon as it is complete. See InputState.

      Parameters

      • value: string

      Returns InputState

      checkPhoneInput('0300 12');     // 'incomplete'
      checkPhoneInput('0360'); // 'invalid' (prefix not allocated)
      checkPhoneInput('03001234567'); // 'valid'