Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const api = () => {
- getGameScores = (gameId, rundeId) => {
- const gameName = data.games[gameId].name;
- const scores = data.scores.filter(s => s.game == gameId);
- return scores.map(s => ({
- gameName,
- userScores: s.useScores.map(u => {
- name: data.users[u.user], score;
- })
- }));
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement