@rodrigogs/xvideos
Version:
xvideos.com api implementation.
13 lines (10 loc) • 308 B
JavaScript
const nextFunction = (currentPage) => () => {
const dashboard = require('./dashboard');
const next = currentPage + 1;
return dashboard({ page: next });
};
const createNextFunction = (pagination) => {
const { page } = pagination;
return nextFunction(page);
};
module.exports = createNextFunction;