Wondering what’s next for npm?Check out our public roadmap! »

    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"

    Install

    npm i arrayindexoverflow

    DownloadsWeekly Downloads

    1

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    37.2 kB

    Total Files

    5

    Last publish

    Collaborators

    • avatar