cc-validate
Version:
Credit Card validation using luhn algorithm
7 lines (6 loc) • 340 B
TypeScript
/**
* @Method: Returns an object with property isValid equals to True if the credit card number is valid and false if it is not. Object also contains cardType, formatted card number in the form **** **** .. and a helpful message
* @Param {string}
* @Return {object}
*/
export declare function isValid(cardNumber: string): object;