# roundround

> A dead simple round-robin array iterator

Latest version **0.2.0** (published 2014-01-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install roundround
pnpm add roundround
yarn add roundround
bun add roundround
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2014-01-30 |
| First published | 2013-12-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 32 |
| Author | Thomas Watson Steen |
| Maintainers | watson |
| Keywords | array, roundrobin, iterate, iterator |

## Links

- npm: https://www.npmjs.com/package/roundround
- Repository: https://github.com/watson/roundround
- Issues: https://github.com/watson/roundround/issues
- npm.io page: https://npm.io/package/roundround

## Recent versions

- 0.2.0 (latest) — 2014-01-30
- 0.1.0 — 2013-12-19

## README

# RoundRound

A dead simple round-robin array iterator

[![build
status](https://secure.travis-ci.org/watson/roundround.png)](http://travis-ci.org/watson/roundround)

## Install

```
npm install roundround
```

## Usage

```javascript
var roundround = require('roundround');

// Initialize RoundRound with any Array (null or undefined are ok as well, so no
// guards necessary)
var rr = roundround([1,2,3]);

// Then call the result to get the next element in the array
rr(); // => 1
rr(); // => 2
rr(); // => 3

// When reaching the end of the internal array, the iterator starts over from
// the beginning
rr(); // => 1

// You can also specify an index from where RoundRound should start
var rr = roundround([1,2,3], 1);
rr(); // => 2
```

## License

MIT

---
_Source: https://npm.io/package/roundround · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
