mirror of
https://github.com/hanzonet/explore.git
synced 2026-10-30 18:16:57 +00:00
6 lines
184 B
TypeScript
6 lines
184 B
TypeScript
const DEFAULT_PAGE_SIZE = 50;
|
|
|
|
export default function getItemIndex(index: number, page: number, pageSize: number = DEFAULT_PAGE_SIZE) {
|
|
return (page - 1) * pageSize + index + 1;
|
|
};
|