paginateArray.ts 132 Bytes BlameHistoryPermalink Edit 1 export const paginateArray = (array: unknown[], perPage: number, page: number) => array.slice((page - 1) * perPage, page * perPage)