fix(guide): added quote literals (#18808)
As quotes are another way to create empty strings, they can be used to create falsy values.
This commit is contained in:
committed by
Quincy Larson
parent
9673f70816
commit
2369fd0d41
@@ -21,7 +21,7 @@ There are only a few values that will be coerced to false:
|
||||
- undefined
|
||||
- NaN
|
||||
- 0
|
||||
- '' (empty string)
|
||||
- '' or "" (empty string)
|
||||
|
||||
All other values will be coerced to true.
|
||||
When a value is coerced to a boolean, we also call that either 'falsy' or 'truthy'.
|
||||
|
Reference in New Issue
Block a user