{"size": 321, "ext": "js", "max_stars_repo_path": "src/points-table/pointsTableObj.js", "max_stars_repo_name": "ebrahimmithaiwala/cricket-tournament-app", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/points-table/pointsTableObj.js", "max_issues_repo_name": "ebrahimmithaiwala/cricket-tournament-app", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/points-table/pointsTableObj.js", "max_forks_repo_name": "ebrahimmithaiwala/cricket-tournament-app", "max_forks_repo_forks_event_min_datetime": "2019-09-19T14:05:13.000Z", "max_forks_repo_forks_event_max_datetime": "2019-09-19T14:05:13.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 16.8947368421, "max_line_length": 68, "alphanum_fraction": 0.5482866044}
import { cricketPointsTableStats } from "./cricketPointsTableStats";

export const pointsTableObj = ({
  teams,
  matches,
  config
}) => {
  return teams.reduce((obj, team) => {
    return {
      ...obj,
      [team]: cricketPointsTableStats({
        matches,
        team,
        config
      })
    };
  }, {});
};
