2.0.0 • Published 3 years ago
rbxts-negative-index v2.0.0
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"
}
],