array-loop

1.0.0 • Public • Published

circulate

circulate is a function for endless looping over an array.

var next = circulate([1, 2, 3]);
 
next(); // 1
next(); // 2
next(); // 3
next(); // 1
next(); // 2
 
// ... and so on

Installation

Node

npm install array-loop

Bower

bower install circulate

License

Copyright (c) 2014 Simon Kusterer Licensed under the MIT license.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    36
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    36

Package Sidebar

Install

npm i array-loop

Weekly Downloads

36

Version

1.0.0

License

MIT

Last publish

Collaborators

  • xat