https://github.com/lijinke666/babel-plugin-array-last-index
arr[-1] => arr[arr.length - 1]
https://github.com/lijinke666/babel-plugin-array-last-index
array babel index plugin
Last synced: 4 months ago
JSON representation
arr[-1] => arr[arr.length - 1]
- Host: GitHub
- URL: https://github.com/lijinke666/babel-plugin-array-last-index
- Owner: lijinke666
- License: mit
- Created: 2019-04-12T02:25:29.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T19:33:29.000Z (over 2 years ago)
- Last Synced: 2025-03-20T01:06:07.808Z (4 months ago)
- Topics: array, babel, index, plugin
- Language: JavaScript
- Homepage:
- Size: 1.36 MB
- Stars: 14
- Watchers: 0
- Forks: 2
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# babel-plugin-array-last-index

[](https://www.npmjs.com/package/babel-plugin-array-last-index)
[](https://www.npmjs.com/package/babel-plugin-array-last-index)
[](https://badge.fury.io/js/babel-plugin-array-last-index)## Installation
using `yarn` :
```
yarn add babel-plugin-array-last-index
```using `npm` :
```
npm install babel-plugin-array-last-index --save
```## Usage
```
// .babelrc
{
"plugins": [
"babel-plugin-array-last-index"
],
}```
## Development
```
git clone https://github.com/lijinke666/babel-plugin-array-last-index.git
npm install | yarn
npm start
```## License
[MIT](https://github.com/$babel-plugin-array-last-index/blob/master/LICENCE)