https://github.com/sormy/babel-plugin-for-length-optimizer
https://github.com/sormy/babel-plugin-for-length-optimizer
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/sormy/babel-plugin-for-length-optimizer
- Owner: sormy
- Created: 2020-08-16T22:38:30.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-16T22:42:49.000Z (almost 5 years ago)
- Last Synced: 2025-02-10T14:53:32.436Z (3 months ago)
- Language: JavaScript
- Size: 61.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# babel-plugin-for-length-optimizer
This is example plugin that brings a small "for length" optimization.
It converts code below:
```js
for (let i = 0; i < array.length; i++) {
...
}
```to:
```js
for (let i = 0, _len = array.length; i < _len; i++) {
...
}
```Tested and is working properly with Babel 7.x