@putout/plugin-remove-useless-array

1.1.0 • Public • Published

@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

Package Sidebar

Install

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

Weekly Downloads

1,444

Version

1.1.0

License

MIT

Unpacked Size

3.62 kB

Total Files

4

Last publish

Collaborators

  • coderaiser