@putout/plugin-apply-filter-boolean
putout plugin adds ability to apply filter(Boolean)
Last updated 4 years ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @putout/plugin-apply-filter-boolean 
SYNC missed versions from official npm registry.

@putout/plugin-apply-filter-boolean NPM version

putout plugin adds ability to apply filter(Boolean). Better use @putout/plugin-remove-useless-functions.

Install

npm i @putout/plugin-apply-filter-boolean

Rule

{
    "rules": {
        "apply-filter-boolean": "on"
    }
}

❌ Incorrect code example

array.filter((a) => a);

✅ Correct code Example

array.filter(Boolean);

License

MIT

Current Tags

  • 1.1.1                                ...           latest (4 years ago)

3 Versions

  • 1.1.1                                ...           4 years ago
  • 1.1.0                                ...           4 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (0)
None
Dev Dependencies (8)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |