1485
"Works for me" (lemmy.sdf.org)
you are viewing a single comment's thread
view the rest of the comments
[-] ivn@jlai.lu 5 points 1 week ago

I've never seen the !0 and !1, it is dumb and indicates either young or terrible devs.

Boolean(window.chrome) is the best, !!window.chrome is good, no need to test if it's equal to true if you make it a boolean beforehand.

[-] RedStrider@lemmy.world 1 points 4 days ago

i just added the === true for clarity

this post was submitted on 25 Jan 2025
1485 points (99.1% liked)

Programmer Humor

20033 readers
801 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

founded 2 years ago
MODERATORS