You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
bool
// usages
chance.falsy()
chance.falsy({ pool: [ NaN, undefined ] })
Return a random falsy value (false
, null
, undefined
, 0
, NaN
, ''
).
chance.falsy();
=> false
The default pool can be change to better meet the needs:
chance.falsy({ pool: [ NaN, undefined ] });
=> NaN