arrayindexoverflow

1.0.1 • Public • Published

arrayindexoverflow

Reset array index in case of overflow

Example...

const arrayindexoverflow = require('arrayindexoverflow');
var array_index = 5;
console.log(arrayindexoverflow(['a','b','c','d','e'], array_index)); //Returs "a"
var array_index = 11;
console.log(arrayindexoverflow(['a','b','c','d','e'], array_index)); //Returs "b"

Dependents (1)

Package Sidebar

Install

npm i arrayindexoverflow

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

37.2 kB

Total Files

5

Last publish

Collaborators

  • widevel