isValidCard

Check credit card number is valid

Return

Boolean (credit card is valid)

Parameters

card

Card number; hyphens and spaces are accepted, but no other special characters.