Skip to content

Instantly share code, notes, and snippets.

View akbarsahata's full-sized avatar

Akbar akbarsahata

View GitHub Profile
// letakkan function ini sebagai helper
module.exports = function isKTP(string) {
let ktp = /\d+-\d+-\d+/;
return ktp.test(string);
}