Function friendlyFormatIBAN

  • Get IBAN in friendly format (separated after every 4 characters) IBAN validation is not performed. When non-string value for IBAN is provided, returns null.

    // returns "NL91 ABNA 0417 1643 00"
    ibantools.friendlyFormatIBAN("NL91ABNA0417164300");
    // returns "NL91-ABNA-0417-1643-00"
    ibantools.friendlyFormatIBAN("NL91ABNA0417164300","-");

    Parameters

    • Optional iban: string
    • Optional separator: string

    Returns string | null