An open API service indexing awesome lists of open source software.

https://github.com/chantastic/circum

A positive array index for any number.
https://github.com/chantastic/circum

Last synced: about 1 year ago
JSON representation

A positive array index for any number.

Awesome Lists containing this project

README

          

# circum [![Build Status](https://travis-ci.org/chantastic/circum.svg?branch=master)](https://travis-ci.org/chantastic/circum)

> An array index for any number.

## Install

```
$ npm install --save circum
```

## Usage

```js
const circum = require('circum');

circum([1,2,3], -2);
//=> 1
```

## API

### circum(arr, index)

#### arr

Type: `array`

#### index

Type: `number`

## License

MIT © [Michael Chan](http://chantastic.org)