Skip to content

widevel/arrayindexoverflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published