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

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

🐊Putout plugin adds ability to remove useless array.entries().

Install

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

Rule

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

❌ Incorrect code example

for (const [, element] of array.entries()) {
}

✅ Correct code Example

for (const element of array) {
}

License

MIT

Current Tags

  • 1.0.0                                ...           latest (3 years ago)

1 Versions

  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (5)
Dependents (1)

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