@[email protected] to Programmer [email protected]English • 2 months ago"Works for me"lemmy.sdf.orgimagemessage-square85fedilinkarrow-up11.47Karrow-down113
arrow-up11.46Karrow-down1image"Works for me"lemmy.sdf.org@[email protected] to Programmer [email protected]English • 2 months agomessage-square85fedilink
minus-square@[email protected]linkfedilinkEnglish5•2 months agoI’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.
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 totrue
if you make it a boolean beforehand.i just added the
=== true
for clarity