UNPKG

@rodrigogs/xvideos

Version:

xvideos.com api implementation.

13 lines (10 loc) 332 B
const previousFunction = (currentPage) => () => { const dashboard = require('./dashboard'); const previous = currentPage - 1; return dashboard({ page: previous }); }; const createPreviousFunction = (pagination) => { const { page } = pagination; return previousFunction(page); }; module.exports = createPreviousFunction;