🐊Putout plugin adds ability to remove useless for-of
npm install @putout/plugin-remove-useless-for-of[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-remove-useless-for-of.svg?style=flat&longCache=true
[NPMURL]: https://npmjs.org/package/@putout/plugin-remove-useless-for-of "npm"
> The Array enables storing a collection of multiple items under a single variable name.
>
> (c) MDN
🐊Putout plugin adds ability to remove useless for...of statements. Merged to @putout/plugin-for-of.
```
npm i @putout/plugin-remove-useless-for-of
`json`
{
"rules": {
"remove-useless-for-of": "on"
}
}
`js`
for (const a of ['hello']) {
console.log(a);
}
`js``
console.log('hello');
MIT