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
var phoneNumber = '08111111'; //nomor yang akan di test | |
$.each(operators, function(service, operator) { | |
//console.log("%o : %o ", service, operator); | |
if (operator["pattern"].test(phoneNumber)) { | |
//do some thing with here or simple alert (for testing) | |
alert("%s iku cocok karo: $s -> jeneng produk'e: $s soko operator %s", phoneNumber, operator["pattern"], service, operator["name"]); | |
else | |
console.log("%s iku gak cocok: $o", phoneNumber, operator); | |
} |