We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 806f16a commit 98c96f5Copy full SHA for 98c96f5
examples/chapter01/04-TruthyFalsy.js
@@ -10,6 +10,7 @@ testTruthy(false); // false
10
testTruthy(new Boolean(false)); // true (object is always true)
11
12
testTruthy(''); // false
13
+testTruthy('a'); // true
14
testTruthy('Packt'); // true
15
testTruthy(new String('')); // true (object is always true)
16
0 commit comments