circ-iter
Simple circular Array and String iterator.
Installation
npm install circ-iter
Usage
/* With an Array */ const next = 1 2 3 // => 1 // => 2 // => 3 // => 1 // => 2 // => 3
/* With a String */ const next = 'abc' // => 'a' // => 'b' // => 'c' // => 'a' // => 'b' // => 'c'
License
WTFPL – Do What the F*ck You Want to Public License.
Made with ❤️ by @MarkTiedemann.