Created
October 11, 2012 09:40
-
-
Save mildfuzz/3871289 to your computer and use it in GitHub Desktop.
Detect if a string input is a valid CVV Credit Card Security number
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| String.prototype.isCVV = function(){ | |
| return (this.length >= 3 && this.length <=4) && Number(this) ? true : false | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment