Change map key element

2.0.0-ts
MillenniumEarl 2021-03-20 10:21:29 +01:00
parent 532fd8cb8c
commit c9ce6faed4
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ async function main() {
if (searchResult.length !== 0) {
// Extract first game
const gamedata = searchResult.shift();
const authors = gamedata.authors.map((a, idx) => a.name).join(", ");
const authors = gamedata.authors.map((a) => a.name).join(", ");
console.log(`Found: ${gamedata.name} (${gamedata.version}) by ${authors}\n`);
} else console.log(`No data found for '${gamename}'\n`);
}