$ npm install @putout/plugin-remove-boolean-from-logical-expressions
A boolean is a logical data type that can have only the values
trueorfalse.(c) MDN
🐊Putout plugin adds ability to find and remove boolean from logical expressions. Merged to @putout/plugin-logical-expressions.
npm i @putout/plugin-remove-boolean-from-logical-expressions -D
{
"rules": {
"remove-boolean-from-logical-expressions": "on"
}
}
const t = true && false;
const t = false;
MIT
© 2010 - cnpmjs.org x YWFE | Home | YWFE