UNPKG

@rodrigogs/xvideos

Version:

xvideos.com api implementation.

13 lines (10 loc) 296 B
const nextFunction = (currentPage) => () => { const fresh = require('./fresh'); const next = currentPage + 1; return fresh({ page: next }); }; const createNextFunction = (pagination) => { const { page } = pagination; return nextFunction(page); }; module.exports = createNextFunction;