1525
"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 2 years 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 2 years ago

i just added the === true for clarity

this post was submitted on 25 Jan 2025
1525 points (99.0% liked)

Programmer Humor

32807 readers
894 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 3 years ago
MODERATORS