@putout/plugin-remove-useless-array
v1.1.0
Published
šPutout plugin adds ability to remove useless array inside property accessors
Downloads
19,363
Maintainers
Readme
@putout/plugin-remove-useless-array
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