Neutral, Plus or Minus

    negative-indices

    1.0.1 • Public • Published

    negative-indices

    Wraps provided array in a Proxy, giving it the power of "Python-style" negative index access.

    const myArr = require('negative-indices')([1,2,3])
    console.log(myArr[-1]) // 3

    Install

    npm i negative-indices

    DownloadsWeekly Downloads

    6

    Version

    1.0.1

    License

    ISC

    Last publish

    Collaborators

    • eirikbirkeland