this post was submitted on 14 Aug 2025
281 points (96.4% liked)
Programmer Humor
25705 readers
1290 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Same as ?
Here
has_value()
should have been checked first, but the JS seems kinda fine.Which is it?
a === b
returns true ifa
andb
have the same type and are considered equal, and false otherwise. Ifa
isnull
andb
is a boolean, it will simply return false.I see, so logically it is fine.
Just not in the context.