@putout/plugin-remove-useless-for-of
🐊Putout plugin adds ability to remove useless for-of
Last updated 3 years ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @putout/plugin-remove-useless-for-of 
SYNC missed versions from official npm registry.

@putout/plugin-remove-useless-for-of NPM version

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.

Install

npm i @putout/plugin-remove-useless-for-of

Rule

{
    "rules": {
        "remove-useless-for-of": "on"
    }
}

❌ Example of incorrect code

for (const a of ['hello']) {
    console.log(a);
}

✅ Example of correct code

console.log('hello');

License

MIT

Current Tags

  • 2.0.1                                ...           latest (3 years ago)

5 Versions

  • 2.0.1                                ...           3 years ago
  • 2.0.0                                ...           5 years ago
  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (0)
None
Dev Dependencies (6)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |