1.
プログラミングにおいて、ブールコンテキストで「真」と評価される値。
プログラミング言語において、明示的にブール値の`true`ではないが、条件式などで`true`として振る舞う値全般を指します。
In
JavaScript,
any
non-empty
string
is
truthy.
(JavaScriptでは、空ではない文字列はすべてtruthyです。)
In JavaScript
JavaScriptというプログラミング言語において。
any non-empty string
任意の空ではない文字列。
is truthy
真として扱われます。
A
non-zero
number
is
considered
truthy.
(ゼロではない数値はtruthyと見なされます。)
A non-zero number
ゼロではない数値。
is considered
と見なされます。
truthy
真であると。
2.
特定のプログラミング言語で、暗黙的にブール値に変換される際に`true`となる、falsy値ではない全ての値。
プログラミングにおいて、`false`、`0`、空文字列 (`""`)、`null`、`undefined`、`NaN`など、特定の「偽の値 (falsy)」以外の全ての値を「truthy」と呼びます。
The
if
statement
evaluates
the
condition
for
its
truthiness.
(if文はその条件がtruthyであるかを評価します。)
The if statement
if文は。
evaluates the condition
その条件を評価します。
for its truthiness
その真偽について。