isValidCardNumberLength

Checks to see whether the input number is of the correct length, given the assumed brand of the card. This function does not perform a Luhn check.

Return

true if the card number is the correct length for the assumed brand

Parameters

cardNumber

the card number with no spaces or dashes