Struktur konfigurasi statis daftar game rr789.
JavaScript
// Konfigurasi objek statis katalog game lokal
const localGameCatalog = {
brand: "rr789",
country: "id",
featuredGames: [
{ id: "025", name: "Hip Hop Panda", category: "Slot" },
{ id: "139", name: "Safari Wilds", category: "Slot" },
{ id: "009", name: "Win Win Won", category: "Slot" }
],
supportStatus: "active"
};
function getGameTitle(id) {
const item = localGameCatalog.featuredGames.find(g => g.id === id);
return item ? item.name : "Game tidak ditemukan";
}
console.log(getGameTitle("025"));
JSON
{
"brand": "rr789",
"country": "id",
"featuredGames": [
{
"id": "025",
"name": "Hip Hop Panda",
"category": "Slot"
},
{
"id": "139",
"name": "Safari Wilds",
"category": "Slot"
},
{
"id": "009",
"name": "Win Win Won",
"category": "Slot"
}
],
"supportStatus": "active"
}