622
know the features of your language
(lemmy.world)
Post funny things about programming here! (Or just rant about your favourite programming language.)
Not strictly equivalent, since
||
tests for truthiness, not just null.That's fair, but it's close enough that it functions identically
Only for the
null
case. For other cases it doesn't function identically, since it also treats""
,0
andundefined
the same asnull
.