@putout/plugin-remove-duplicates-from-logical-expressions
v1.0.3
Published
šPutout plugin adds ability to find and remove duplicates from logical expressions
Downloads
34,299
Maintainers
Readme
@putout/plugin-remove-duplicates-from-logical-expressions
šPutout plugin adds ability to find and remove duplicates
from logical expressions
. Merged to @putout/plugin-simplify-logical-expressions.
Install
npm i @putout/plugin-remove-duplicates-from-logical-expressions -D
Rule
{
"rules": {
"remove-duplicates-from-logical-expressions": "on"
}
}
ā Example of incorrect code
const t = a && b && a;
ā Example of correct code
const t = a && b;
License
MIT