Skip to content

Extends Arrays with support for negative indices. Uses ES6 Proxy.

Notifications You must be signed in to change notification settings

EirikBirkeland/negative-indices

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Extends Arrays with support for negative indices. Uses ES6 Proxy.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published