array-like/rotate

View on GitHub
README.md

Summary

Maintainability
Test Coverage
:carousel_horse: [@array-like/rotate](https://array-like.github.io/rotate)
==

ArrayLike rotation for JavaScript.
See [docs](https://array-like.github.io/rotate/index.html).

```js
import {range} from '@iterable-iterator/range';
import {rotateLeft} from '@array-like/rotate';

const a = Array.from(range(5));
rotateLeft(a, 0, 5, 2);
a; // 2 3 4 0 1
```

[![License](https://img.shields.io/github/license/array-like/rotate.svg)](https://raw.githubusercontent.com/array-like/rotate/main/LICENSE)
[![Version](https://img.shields.io/npm/v/@array-like/rotate.svg)](https://www.npmjs.org/package/@array-like/rotate)
[![Tests](https://img.shields.io/github/actions/workflow/status/array-like/rotate/ci.yml?branch=main&event=push&label=tests)](https://github.com/array-like/rotate/actions/workflows/ci.yml?query=branch:main)
[![Dependencies](https://img.shields.io/librariesio/github/array-like/rotate.svg)](https://github.com/array-like/rotate/network/dependencies)
[![GitHub issues](https://img.shields.io/github/issues/array-like/rotate.svg)](https://github.com/array-like/rotate/issues)
[![Downloads](https://img.shields.io/npm/dm/@array-like/rotate.svg)](https://www.npmjs.org/package/@array-like/rotate)

[![Code issues](https://img.shields.io/codeclimate/issues/array-like/rotate.svg)](https://codeclimate.com/github/array-like/rotate/issues)
[![Code maintainability](https://img.shields.io/codeclimate/maintainability/array-like/rotate.svg)](https://codeclimate.com/github/array-like/rotate/trends/churn)
[![Code coverage (cov)](https://img.shields.io/codecov/c/gh/array-like/rotate/main.svg)](https://codecov.io/gh/array-like/rotate)
[![Code technical debt](https://img.shields.io/codeclimate/tech-debt/array-like/rotate.svg)](https://codeclimate.com/github/array-like/rotate/trends/technical_debt)
[![Documentation](https://array-like.github.io/rotate/badge.svg)](https://array-like.github.io/rotate/source.html)
[![Package size](https://img.shields.io/bundlephobia/minzip/@array-like/rotate)](https://bundlephobia.com/result?p=@array-like/rotate)