UNPKG

@atlaskit/dynamic-table

Version:

A dynamic table displays rows of data with built-in pagination, sorting, and re-ordering functionality.

4 lines 199 B
export const computeIndex = (index, page, rowsPerPage) => { const itemOnPreviousPages = rowsPerPage && isFinite(rowsPerPage) ? (page - 1) * rowsPerPage : 0; return index + itemOnPreviousPages; };