Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: about 2 months ago
JSON representation

arr[-1] => arr[arr.length - 1]

Awesome Lists containing this project

README

        

# babel-plugin-array-last-index

![https://cdn.lijinke.cn/carbon.png](https://cdn.lijinke.cn/carbon.png)

[![npm](https://img.shields.io/npm/dm/babel-plugin-array-last-index.svg?style=flat-square)](https://www.npmjs.com/package/babel-plugin-array-last-index)
[![npm](https://img.shields.io/npm/l/babel-plugin-array-last-index.svg?style=flat-square)](https://www.npmjs.com/package/babel-plugin-array-last-index)
[![npm version](https://img.shields.io/npm/v/babel-plugin-array-last-index.svg?style=flat-square)](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)