Module

formatCreditCardNum

Format credit card number (e.g. 4242424242424242) to format like 4242-4242-4242-4242 (separator can be customized)
Parameters:
Name Type Description
value The original credit card number valu like 4242424242424242
separator Customized separator. Default to hyphen '-'.

View Source number/formatCreditCardNum.js, line 35