2.0.0 • Published 2 years ago

@maze.st/cycler v2.0.0

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

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();