We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34c0fbe commit b3efe2cCopy full SHA for b3efe2c
index.html
@@ -49,7 +49,7 @@
49
</section>
50
<section>
51
<section data-markdown>
52
- # Types
+ # Types & Truthiness
53
54
55
## Objects
@@ -70,6 +70,21 @@
70
[]
71
function (x) { return x; }
72
73
+ <section data-markdown>
74
+ ## Comparisons and Truthiness
75
+
76
+ undefined == null // → true
77
+ undefined === null // → false
78
+ 0 == false // → true
79
+ 1 == true // → true
80
+ '0' == false // → true
81
+ '1' == true // → true
82
+ '' == false // → true
83
+ 'hello world' == false // → false
84
+ 'hello world' == true // → false
85
86
+ if conditions are like `!= false`
87
+ </section>
88
89
90
0 commit comments