Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function isSignificant(match) {
return Boolean(constants.game_mode[match.game_mode]
&& constants.game_mode[match.game_mode].balanced
&& constants.lobby_type[match.lobby_type]
&& constants.lobby_type[match.lobby_type].balanced
&& match.radiant_win !== undefined
&& match.duration > 360
&& (match.players || []).every(player => (player.gold_per_min || 0) < 2500));
}
function isSignificant(match) {
return Boolean(constants.game_mode[match.game_mode]
&& constants.game_mode[match.game_mode].balanced
&& constants.lobby_type[match.lobby_type]
&& constants.lobby_type[match.lobby_type].balanced
&& match.radiant_win !== undefined
&& match.duration > 360
&& (match.players || []).every(player => (player.gold_per_min || 0) < 2500));
}
game_mode: ({ field }) => (constants.game_mode[field] ? constants.game_mode[field].name : field),
start_time: ({ field }) => moment.unix(field).fromNow(),