$ npm install @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.
npm i @putout/plugin-remove-duplicates-from-logical-expressions -D
{
"rules": {
"remove-duplicates-from-logical-expressions": "on"
}
}
const t = a && b && a;
const t = a && b;
MIT
© 2010 - cnpmjs.org x YWFE | Home | YWFE