PakDataKit - v2.2.0
    Preparing search index...

    Function checkIBANInput

    • Checks a Pakistani IBAN while the user is typing: the PK prefix, check digits and bank code are checked as they are typed, and the full checksum once all 24 characters are in. See InputState.

      Parameters

      • value: string

      Returns InputState

      checkIBANInput('PK36 SC');                       // 'incomplete'
      checkIBANInput('GB29'); // 'invalid'
      checkIBANInput('PK36 SCBL 0000 0011 2345 6702'); // 'valid'