I have a "map" based on a table.
when user click on map, the map updates
if (value === null) return (
  <td onClick={this.handleCellClick.bind(this, row, col)}></td>
);
the function:
  handleCellClick(row, col) {
    let currentPlayer = this.currentPlayer(); // 1
    let game = this.props.game;
    game.board[row][col] = currentPlayer;
    Games.update(game._id, { $set: {board: game.board} });
  }
After few click the record in DB looks this:
How I can change all "1" to null values and "0" to "5"?


 
     
     
    