kc-paginate-res
v1.0.5
Published
[js] Paginate results array.
Downloads
2
Readme
PaginateRes
[js] Paginate results array.
Install
npm install kc-paginate-res
Use
var paginateRes = require('kc-paginate-res');
var arr = [];
for (var i = 0; i < 100; i++) {
arr.push(i);
}
var res = paginateRes(arr, 20, 1);
console.log(res);