Skip to Content
🎲 欢迎使用 RandBox - 功能强大的 JavaScript 随机数据生成库! 了解详情

falsy

// 用法 randBox.falsy() randBox.falsy({ pool: [ NaN, undefined ] })

返回一个随机的假值(falsenullundefined0NaN'')。

randBox.falsy(); => false

默认的值池可以根据需要进行修改:

randBox.falsy({ pool: [ NaN, undefined ] }); => NaN
最后更新于: