@putout/plugin-remove-useless-operand
v3.0.0
Published
šPutout plugin adds ability to remove useless operand
Maintainers
Readme
@putout/plugin-remove-useless-operand 
The increment operator (
++) adds one to its operand and returns a value.The addition assignment operator (
+=) adds the value of the right operand to a variable and assigns the result to the variable.(c) MDN
šPutout plugin adds ability to remove useless operand.
Install
npm i @putout/plugin-remove-useless-operandRule
{
"rules": {
"remove-useless-operand": "on"
}
}ā Example of incorrect code
a = a + b;
a = b + a;
b += 1;ā Example of correct code
a += b;
++b;License
MIT
