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:
Budavölgyi Bálint
2018-10-15 22:03:39 +02:00
committed by Quincy Larson
parent 9673f70816
commit 2369fd0d41

View File

@@ -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'.