1.0.7 • Published 4 years ago

check-if-falsy-except-value v1.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

if you need ignore your falsy value from your expression you can use this little package

install

link

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

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago