HF RL Explorer

pagination: edge case

pagination: edge case: a task in smol-software-harbor (Harbor dataset). paginate() in src/paginate.js is off by one: page 1 shows the second page of results, and the last partial page is never counted in totalPages (25 items at 10 per page must give 3 pages; an empty list still has 1 page). Fix it…

The task

`paginate()` in `src/paginate.js` is off by one: page 1 shows the second page of results, and the last partial page is never counted in `totalPages` (25 items at 10 per page must give 3 pages; an empty list still has 1 page). Fix it following the comment and run `node --test test/*.test.js`.

Part of efederici/smol-software-harbor.