Skrip konfigurasi objek statis untuk memetakan katalog game hiburan 6666f.
JavaScript
// Konfigurasi objek permainan lokal 6666f
const gameCatalog = {
brand: "6666f",
domain: "6666fgame.cc",
catalog: [
{ id: "131", name: "Hawaiian Tiki", category: "Slot" },
{ id: "159", name: "Shark Bounty", category: "Slot" },
{ id: "106", name: "Emoji Riches", category: "Slot" },
{ id: "088", name: "Bali Vacation", category: "Slot" },
{ id: "203", name: "Princess Frog", category: "Slot" }
]
};
function getGameInfo(id) {
return gameCatalog.catalog.find(game => game.id === id) || null;
}
// Menampilkan data uji
console.log(getGameInfo("131"));
JSON
{
"brand": "6666f",
"domain": "6666fgame.cc",
"catalog": [
{
"id": "131",
"name": "Hawaiian Tiki",
"category": "Slot"
},
{
"id": "159",
"name": "Shark Bounty",
"category": "Slot"
},
{
"id": "106",
"name": "Emoji Riches",
"category": "Slot"
},
{
"id": "088",
"name": "Bali Vacation",
"category": "Slot"
},
{
"id": "203",
"name": "Princess Frog",
"category": "Slot"
}
]
}