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
npm install array-loop
bower install circulate
Copyright (c) 2014 Simon Kusterer Licensed under the MIT license.