UNPKG

@rodrigogs/xvideos

Version:

xvideos.com api implementation.

11 lines (8 loc) 272 B
const hasNextFunction = (currentPage, pages) => () => { return currentPage < Math.max(...pages); }; const createHasNextFunction = (pagination) => { const { page, pages } = pagination; return hasNextFunction(page, pages); }; module.exports = createHasNextFunction;