CYCLER
About
Allow you to cycle thru all items in the given array.
Install
To install cycler
, simply run the following command:
$ npm i @maze.st/cycler
Usage
const Cycler = require('@maze.st/cycler');
var items = new Cycler(['foo', 'bar', 'unicorn']);
items.count();
items.curr();
items.prev();
items.next();