1.0.4 • Published 2 years ago

simple-paginate v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Simple Paginate

A very simple paginator built in TypeScript

Usage

import { Paginator } from 'simple-paginate';

let list = ["1","2","3","4","5","6","7","8","9","10"];

let paginator = new Paginator<string>(list, 2);

while (paginator.next()) {
    console.log(paginator.getPage());
}

output:

[ '1', '2' ]
[ '3', '4' ]
[ '5', '6' ]
[ '7', '8' ]
[ '9', '10' ]
1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago