more work

main
Zynh0722 2024-02-08 05:09:31 -08:00
parent 3a3f26d39f
commit 82bc331688
1 changed files with 20 additions and 1 deletions

View File

@ -59,7 +59,26 @@ for (const matchId of commonGameIds) {
} }
console.log(`Common Game Data Found: ${commonGameIds.length}`); console.log(`Common Game Data Found: ${commonGameIds.length}`);
console.log(`${JSON.stringify(commonGames[0], null, " ")}`);
commonGames.reverse();
commonGames
.map(({ info, metadata }) => ({
id: metadata.matchId,
data: info.participants
.filter(({ puuid }) => puuid === ice.puuid || puuid === val.puuid)
.map(({ championId, championName, summonerName, lane }) => ({
championId,
championName,
summonerName,
lane,
})),
}))
// .filter(({ data }) => {
// const lanes = data.map((s) => s.lane);
// return lanes.includes("BOTTOM") && lanes.includes("SUPPORT");
// })
.forEach((g) => console.log(g));
/** /**
* @param {string} puuid * @param {string} puuid