April 7, 2022 ‐ 1 min read
false in a Boolean context are:
Notice here that empty arrays and empty objects are not considered falsy.
If there is falsy, what about truthy
Obviously when there are falsy values, there must be truthy values too. Which, logically, are values that evaluate to
true in a Boolean context. These truthy values are just all the other values which are not considered falsy.