isCreditCard
isCreditCard :: a β Boolean
Reports whether the received value is a valid credit card number.
Please note, isCreditCard assumes the receiving value is a number or a string without the usual dashes. It only evaluates the credit card number, not its format.
Specificity
isCreditCard reports whether a string or a number is a valid credit card number, it doesn't tell anything on the type of card. To check on specific card types it's possible to use one of the composing function of isCreditCard:
Last updated