
Product
Introducing Rust Support in Socket
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
@putout/plugin-simplify-boolean-return
Advanced tools
🐊Putout plugin adds ability to simplify boolean return
🐊Putout plugin adds ability to simplify boolean return. Merged with @putout/plugin-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
FAQs
🐊Putout plugin adds ability to simplify boolean return
The npm package @putout/plugin-simplify-boolean-return receives a total of 2,911 weekly downloads. As such, @putout/plugin-simplify-boolean-return popularity was classified as popular.
We found that @putout/plugin-simplify-boolean-return demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.