$ cnpm install @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.
npm i @putout/plugin-remove-useless-array
{
"rules": {
"remove-useless-array": "on"
}
}
A[[B]];
A[B];
MIT
Copyright 2013 - present © cnpmjs.org | Home |