paginate-store
v1.0.0
Published
pagenate data memory on store.
Downloads
5
Readme
resp.js
install
npm i paginate-store --save
var _ = require('lodash');
var pgStore = require('../index');
var store = pgStore([
{text: 111, value: '11xcasascdsasa1'},
{text: 111, value: 'dsadsada'},
{text: 111, value: '11cdsacdascds1'},
{text: 111, value: 'dscdsacas'},
{text: 111, value: 'dsdsadada'},
{text: 111, value: '1dsdsa11'},
{text: 111, value: '11cdsacdscsa1'},
{text: 111, value: 'dsadsadsa'},
{text: 111, value: '11casdcsadcdds1'},
{text: 111, value: '11cdscasdsadsadsad1'},
{text: 111, value: 'dsadsad'},
{text: 111, value: '11cdscsda1'},
{text: 111, value: '1dsdsadsa11'},
{text: 111, value: '11csdcasd1'},
{text: 111, value: '1dsadad11'},
{text: 111, value: '1dsadasdsadasda11'},
{text: 111, value: '1cds11'},
{text: 111, value: '1csacdasca11'},
{text: 111, value: 'fadsfdafdas'},
{text: 111, value: '1cdsacsceca11'},
{text: 111, value: '1cdscsa11'},
{text: 111, value: '11cas1'},
{text: 111, value: '11cdsacs1'},
{text: 111, value: '11csdaca1'},
{text: 111, value: '11csascdas1'},
], 3);
_.times(10, function() {
console.log(store.get());
console.log(store.releasedCount());
console.log(store.count());
console.log(store.maxCount());
});