1.1.0 β€’ Published 1 year ago

@putout/plugin-remove-useless-array v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@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

1.1.0

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago