circum

0.0.1 • Public • Published

circum Build Status

A positive array index for any number.

Install

$ npm install --save circum

Usage

const circum = require('circum');
 
circum([1,2,3], -2);
//=> 1

API

circum(arr, index)

arr

Type: array

index

Type: number

License

MIT © Michael Chan

Readme

Keywords

none

Package Sidebar

Install

npm i circum

Weekly Downloads

3

Version

0.0.1

License

MIT

Last publish

Collaborators

  • chantastic