2.0.0 • Published 4 years ago
@maze.st/cycler v2.0.0
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/cyclerUsage
const Cycler = require('@maze.st/cycler');
var items = new Cycler(['foo', 'bar', 'unicorn']);
items.count();
items.curr();
items.prev();
items.next();2.0.0
4 years ago