isIbanValid
Mask
stable
Validates an IBAN string using the ISO 13616 mod-97 algorithm. Strips whitespace, rearranges the character groups, converts letters to numbers, and verifies the remainder equals 1.
API
Signature
Signature TypeScript complète, extraite du fichier util.
API
Paramètres
Paramètres d'entrée acceptés par cet util.
- rawrequisstring
- The raw IBAN string, optionally containing spaces (they are stripped before validation). Must be 4–34 alphanumeric characters after normalisation.
API
Valeur de retour
La valeur retournée par cet util.
- true when the IBAN passes the ISO 13616 mod-97 check; false for empty input, wrong length, invalid characters, or a bad checksum.
Usage
Exemples
Extraits de code prêts à coller.
Valid and invalid IBAN