$ npm install @putout/plugin-simplify-boolean-return
🐊Putout plugin adds ability to simplify boolean return.
npm i @putout/plugin-simplify-boolean-return -D
{
"rules": {
"simplify-boolean-return": "on"
}
}
Check out in 🐊Putout Editor.
function isA(a, b) {
if (a.length === b.length)
return true;
return false;
}
function isA(a, b) {
return a.length !== b.length;
}
MIT
© 2010 - cnpmjs.org x YWFE | Home | YWFE