Masks a valid bank account number after removing supported separators.
Bank account number.
Digits to leave visible at the end. Defaults to 4.
The masked account number, or null if invalid.
null
maskBankAccount('1234-5678-90'); // '******7890' Copy
maskBankAccount('1234-5678-90'); // '******7890'
Masks a valid bank account number after removing supported separators.