@putout/plugin-merge-if-statements
v3.1.1
Published
šPutout plugin adds ability to merge if-statements
Downloads
58,012
Maintainers
Readme
@putout/plugin-merge-if-statements 
The
ifstatement executes a statementifa specified condition is truthy.(c) MDN
šPutout plugin adds ability to merge if statements. Merged to @putout/plugin-conditions.
Install
npm i @putout/plugin-merge-if-statementsRule
{
"rules": {
"merge-if-statements": "on"
}
}ā Example of incorrect code
if (a > b) {
if (b < c) {
console.log('hello');
}
}ā Example of correct code
if (a > b && b < c) {
console.log('hello');
}License
MIT
