A JavaScript utility library delivering consistency, modularity, performance, & extras.
ctx.selectedPlayers.forEach((player) => {
const comparableMatches = player.matches.map((match) => ({
teamName: match.teamName,
matchId: match.matchId,
eloDiff: match.eloDiff,
map: match.map,
win: match.win,
time: new Date(match.time),
}));
allMatches.push(comparableMatches);
});
return _.intersectionWith(...allMatches, _.isEqual);
(object1, object2) => boolean