@putout/plugin-remove-useless-array-from
putout plugin adds ability to remove useless Array.from
Last updated 7 years ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @putout/plugin-remove-useless-array-from 
SYNC missed versions from official npm registry.

@putout/plugin-remove-useless-array-from NPM version

🐊Putout plugin adds ability to remove useless Array.from(). Merged to @putout/plugin-for-of.

Install

npm i @putout/plugin-remove-useless-array-from

Rule

{
    "rules": {
        "remove-useless-array-from": "on"
    }
}

❌ Example of incorrect code

for (const x of Array.from(y)) {}

✅ Example of correct code

for (const x of y) {}

License

MIT

Current Tags

  • 2.1.1                                ...           latest (4 years ago)

4 Versions

  • 2.1.1                                ...           4 years ago
  • 2.1.0                                ...           6 years ago
  • 2.0.0                                ...           7 years ago
  • 1.0.0                                ...           7 years ago
Maintainers (1)
Downloads
Total 10
Today 0
This Week 0
This Month 5
Last Day 0
Last Week 0
Last Month 5
Dependencies (0)
None
Dev Dependencies (8)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE