🐊Putout plugin adds ability to merge if-statements
npm install @putout/plugin-merge-if-statements[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-merge-if-statements.svg?style=flat&longCache=true
[NPMURL]: https://npmjs.org/package/@putout/plugin-merge-if-statements "npm"
> The if statement executes a statement if a specified condition is truthy.
>
> (c) MDN
🐊Putout plugin adds ability to merge if statements. Merged to @putout/plugin-conditions.
```
npm i @putout/plugin-merge-if-statements
`json`
{
"rules": {
"merge-if-statements": "on"
}
}
`js`
if (a > b) {
if (b < c) {
console.log('hello');
}
}
`js``
if (a > b && b < c) {
console.log('hello');
}
MIT