falsy

[美]/fɔːlsi/
[英]/fɔlsi/

释义

adj. 在布尔上下文中求值为假的;假的;不真实的
n. 假值
词形变化
复数falsies

短语搭配

falsy value

假值

falsy values

假值

is falsy

是假值

falsy data

假数据

become falsy

变为假值

return falsy

返回假值

evaluates falsy

求值为假值

treat as falsy

视为假值

falsy statement

假语句

deemed falsy

被视作假值

例句

in javascript, null is a falsy value.

在JavaScript中,null是一个假值。

the function returns a falsy result when the input is invalid.

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

we treat empty strings as falsy in conditional statements.

在条件语句中,我们将空字符串视为假值。

the expression evaluates to falsy because the number is zero.

由于数字为零,该表达式评估为假值。

many developers confuse truthy and falsy concepts.

许多开发者会混淆真值和假值的概念。

the boolean check converts the operand to falsy or truthy.

布尔检查会将操作数转换为假值或真值。

an empty array is actually truthy, not falsy in javascript.

在JavaScript中,一个空数组实际上是真值,而不是假值。

the condition becomes falsy when the variable is undefined.

当变量未定义时,该条件变为假值。

you should verify whether the value is falsy before using it.

在使用该值之前,你应该验证它是否为假值。

the comparison returns falsy due to type coercion rules.

由于类型转换规则,该比较返回假值。

this pattern helps avoid falsy checks by using default values.

此模式通过使用默认值有助于避免假值检查。

in python, none is considered falsy in boolean contexts.

在Python中,None在布尔上下文中被视为假值。

下载 App 解锁完整内容

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

立即下载 DictoGo