{"size": 233, "ext": "js", "max_stars_repo_path": "our-store-app-v2 ts refactor/src/utils/pagination.js", "max_stars_repo_name": "sedc-codecademy/skwd9-niwd2-wdel3", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "our-store-app-v2 ts refactor/src/utils/pagination.js", "max_issues_repo_name": "sedc-codecademy/skwd9-niwd2-wdel3", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "our-store-app-v2 ts refactor/src/utils/pagination.js", "max_forks_repo_name": "sedc-codecademy/skwd9-niwd2-wdel3", "max_forks_repo_forks_event_min_datetime": "2021-11-07T13:34:03.000Z", "max_forks_repo_forks_event_max_datetime": "2021-11-07T13:34:03.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 21.1818181818, "max_line_length": 63, "alphanum_fraction": 0.6995708155}
export const paginateArray = (array, pageSize, pageNumber) => {
  const arrayToBePrinted = array.slice(
    (pageNumber - 1) * pageSize,
    pageNumber * pageSize
  );

  console.log(arrayToBePrinted);

  return arrayToBePrinted;
};
