simple-pagination
Just provides only a simple pagination logic
Installation
npm install --save simple-pagination
API
/* * Returns pagination result * * @param {number} totalCount - Number of items that will be paginated * @param {number} perPage - Number of items per page * @param {number} specifiedPage - Page number you wanted to get, it is started by 1 */ {};
Examples
var assert = ;var paginate = ; assert; assert; // Specified page number is out of rangeassert; // If page count is 0, then props are mostly nullassert;