Skip to content

synergence/negative-index

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example of how this works:

const yourArray = ['a', 'b', 'c'];
const last = yourArray[-1];
const secondLast = yourArray[-2];

To install, put this in your tsconfig.json of your roblox-ts project under compiler options:

"plugins": [
    {
        "transform": "rbxts-negative-index"
    }
],

About

Allows negative indexing of arrays using transformers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published