https://github.com/arifemir/check-if-falsy-except-value
if you need ignore your falsy value from your expression you can use this little package
https://github.com/arifemir/check-if-falsy-except-value
false falsy javascript truly typescript
Last synced: 4 days ago
JSON representation
if you need ignore your falsy value from your expression you can use this little package
- Host: GitHub
- URL: https://github.com/arifemir/check-if-falsy-except-value
- Owner: arifemir
- License: mit
- Created: 2021-07-08T22:34:56.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-07-10T01:08:07.000Z (about 4 years ago)
- Last Synced: 2025-03-16T01:20:15.707Z (7 months ago)
- Topics: false, falsy, javascript, truly, typescript
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/check-if-falsy-except-value
- Size: 46.9 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### if you need ignore your falsy value from your expression you can use this little package
# install
[link](https://www.npmjs.com/package/check-if-falsy-except-value)```
npm i check-if-falsy-except-value
```
# usage
scenario, we have to make sure that data is true;```
if(!!data) {
// ...
}
```yes it is work but we need to use 0 or another falsy value;
```
if(toBool(data, 0)) {
// ...
}```
it is the all feature this package