Skip to content

checkIBANInput

function checkIBANInput(value): InputState;

Defined in: input.ts:164

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.

Parameter Type
value string

InputState

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