{"size": 428, "ext": "js", "max_stars_repo_path": "src/reducers/gridReducer.js", "max_stars_repo_name": "shaqash/sudoku-solver", "max_stars_repo_stars_event_min_datetime": "2020-07-04T18:27:33.000Z", "max_stars_repo_stars_event_max_datetime": "2020-07-04T18:27:33.000Z", "max_issues_repo_path": "src/reducers/gridReducer.js", "max_issues_repo_name": "shaqash/sudoku-solver", "max_issues_repo_issues_event_min_datetime": "2020-07-04T19:29:14.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-27T06:05:55.000Z", "max_forks_repo_path": "src/reducers/gridReducer.js", "max_forks_repo_name": "shaqash/sudoku-solver", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 5, "max_forks_count": null, "avg_line_length": 22.5263157895, "max_line_length": 48, "alphanum_fraction": 0.4696261682}
export default function reducer(state, action) {
  switch (action.type) {
    case "SET":
      return state.map((row, rIndex) => {
        if (action.rIndex === rIndex) {
          return row.map((cell, cIndex) => {
            if (action.cIndex === cIndex) {
              return action.value;
            }
            return cell;
          });
        }
        return row;
      });
    default:
      return state;
  }
}
