xia@lemmy.sdf.org to Programmer Humor@programming.devEnglish · 2 days ago"Works for me"lemmy.sdf.orgimagemessage-square79fedilinkarrow-up11.42Karrow-down111
arrow-up11.41Karrow-down1image"Works for me"lemmy.sdf.orgxia@lemmy.sdf.org to Programmer Humor@programming.devEnglish · 2 days agomessage-square79fedilink
minus-squareivn@jlai.lulinkfedilinkEnglisharrow-up5·1 day 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.