# rr

> Component to iterate an array round robin.

Latest version **0.1.0** (published 2013-12-26) · MIT license · 0 weekly downloads

## Install

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

## 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.1.0 |
| Published | 2013-12-26 |
| First published | 2013-10-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 12 |
| Author | JP Richardson |
| Maintainers | jp |
| Keywords | array, utility, iterate, round robin, collection |

## Links

- npm: https://www.npmjs.com/package/rr
- Repository: https://github.com/jprichardson/rr
- npm.io page: https://npm.io/package/rr

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2013-12-26
- 0.0.1 — 2013-10-15

## README

rr
==

A simple JavaScript component to iterate an array round robin.


Why?
----

Sometimes you want to loop over an array and start at the beginning again.



Install
-------

### Node.js/Browserify

    npm install --save rr


### Component

    component install jprichardson/rr


### Bower

    bower install rr


### Script

```html
<script src="/path/to/rr.js"></script>
```


Usage
-----

### rr(array, [lastIndex])


### Example

```js
var rr = require('rr')

var list = ['a', 'b', 'c']
console.log(rr(list)) //a
console.log(rr(list)) //b
console.log(rr(list)) //c
console.log(rr(list)) //a

console.log(rr(list,1)) //c
console.log(rr(list,2)) //a 
```


### splice(array, idx, len)


### spliceCurrent(array, len)



License
-------

(MIT License)

Copyright 2013, JP Richardson

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