Created
August 16, 2017 00:20
-
-
Save akbarsahata/3b6fc5c385811c6a9edc27f248a8f8ff to your computer and use it in GitHub Desktop.
isKTP
This file contains 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
// letakkan function ini sebagai helper | |
module.exports = function isKTP(string) { | |
let ktp = /\d+-\d+-\d+/; | |
return ktp.test(string); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment