falsey

[美]/ˈfɔːlsi/
[英]/ˈfɔːlsi/
词频: 极高

释义

adj.【计算机】假值的;伪值;虚假的;不诚实的

例句

the function returns a falsey value when the input is invalid.

当输入无效时,函数返回一个假值。

javascript treats empty strings as falsey values.

javascript将空字符串视为假值。

we need to fix the falsey check in the validation logic.

我们需要修复验证逻辑中的假值检查。

the comparison produced a falsey result instead of the expected boolean.

比较产生了一个假值结果,而不是预期的布尔值。

use a conditional to handle the falsey case properly.

使用条件语句正确处理假值情况。

the test suite revealed some falsey behavior in the code.

测试套件揭示了代码中的一些假值行为。

the expression evaluates to falsey when both operands are zero.

当两个操作数都为零时,表达式求值为假值。

this library has a bug where it returns falsey instead of null.

这个库有一个bug,它返回假值而不是null。

the falsey evaluation happens before the main logic executes.

假值评估在主逻辑执行之前发生。

you should convert the falsey return to an explicit boolean.

您应该将假值返回转换为显式的布尔值。

the condition becomes falsey if the user doesn't provide input.

如果用户不提供输入,条件就会变成假值。

in python, none is considered falsey in boolean contexts.

在python中,none在布尔上下文中被认为是假值。

下载 App 解锁完整内容

想更高效学习单词?下载DictoGo App,享受更多词汇记忆与复习功能!

立即下载 DictoGo