formatCreditCard
Format string as credit card number.
Example:
"1234567890123456".formatCreditCard(separator = "-") // 1234-5678-9012-3456
"1234567890123456".formatCreditCard() // 1234 5678 9012 3456
Content copied to clipboard
Since
1.1.0
Return
formatted credit card number.