🐊Putout plugin adds ability to remove useless operand
npm install @putout/plugin-remove-useless-operand[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-remove-useless-operand.svg?style=flat&longCache=true
[NPMURL]: https://npmjs.org/package/@putout/plugin-remove-useless-operand "npm"
> 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.
```
npm i @putout/plugin-remove-useless-operand
`json`
{
"rules": {
"remove-useless-operand": "on"
}
}
`js`
a = a + b;
a = b + a;
b += 1;
`js``
a += b;
++b;
MIT