findBet(playerBet) {
      return this.getBetsById(playerBet['pid']).find(function(bet) {
        return bet['bet'].constructor === playerBet['bet'].constructor &&
               bet['bet']['name'] === playerBet['bet']['name'] &&
               bet['bet'].pointValue === playerBet['bet'].pointValue;
      });
    }
/*
     * Find an active bet made by the player on this game.
     * @param playerBet [PlayerBet] A simple instance containing the player ID and bet with pointValue.
     * @return [PlayerBet] The PlayerBet instance in the game, if found.
     */
Find an active bet made by the player on this game.
@param playerBet [PlayerBet] A simple instance containing the player ID and bet with pointValue.
@return [PlayerBet] The PlayerBet instance in the game, if found.
Find an active bet made by the player on this game . @param playerBet [ PlayerBet ] A simple instance containing the player ID and bet with pointValue . @return [ PlayerBet ] The PlayerBet instance in the game if found .
findBet(playerBet) {
      return this.getBetsById(playerBet['pid']).find(function(bet) {
        return bet['bet'].constructor === playerBet['bet'].constructor &&
               bet['bet']['name'] === playerBet['bet']['name'] &&
               bet['bet'].pointValue === playerBet['bet'].pointValue;
      });
    }
findBet ( playerBet ) { return this . getBetsById ( playerBet [ 'pid' ] ) . find ( function ( bet ) { return bet [ 'bet' ] . constructor === playerBet [ 'bet' ] . constructor && bet [ 'bet' ] [ 'name' ] === playerBet [ 'bet' ] [ 'name' ] && bet [ 'bet' ] . pointValue === playerBet [ 'bet' ] . pointValue ; } ) ; }
Find an active bet made by the player on this game.
Find an active bet made by the player on this game .