Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
let getTeam = (player) => {
if (_.includes(demo.teams[demofile.TEAM_CTS].members.map(p => p.userId), player.userId)) {
return "CT";
}
return "T";
};
rxop.map(e => {
if (e.winner === demofile.TEAM_TERRORISTS) return {winner: 'T'};
else if (e.winner === demofile.TEAM_CTS) return {winner: 'CT'};
}),
);
let getTeam = (player) => {
if (_.includes(demo.teams[demofile.TEAM_CTS].members.map(p => p && p.userId), player.userId)) {
return "CT";
}
return "T";
};