Skip to content

xat/circulate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

circulate over an javascript array

Resources

License

Stars

Watchers

Forks

Packages

No packages published