@putout/plugin-remove-useless-array
🐊Putout plugin adds ability to remove useless array inside property accessors
Last updated 10 months ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @putout/plugin-remove-useless-array 
SYNC missed versions from official npm registry.

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

Property accessors provide access to an object's properties by using the dot notation or the bracket notation.

(c) MDN

🐊Putout plugin adds ability to remove useless array inside property accessors. Checkout in 🐊Putout Editor.

Install

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

Rule

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

❌ Example of incorrect code

A[[B]];

✅ Example of correct code

A[B];

License

MIT

Current Tags

  • 3.0.0                                ...           latest (10 months ago)

5 Versions

  • 3.0.0                                ...           10 months ago
  • 2.0.0                                ...           2 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Total 7
Today 0
This Week 0
This Month 7
Last Day 0
Last Week 1
Last Month 0
Dependencies (0)
None
Dev Dependencies (6)
Dependents (1)

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