npm i check-if-falsy-except-value
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
npm i check-if-falsy-except-value
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