tatterdemalion@programming.dev to Science Memes@mander.xyzEnglish · 18 days agoif statement == falsei.imgflip.comexternal-linkmessage-square40fedilinkarrow-up1249arrow-down118
arrow-up1231arrow-down1external-linkif statement == falsei.imgflip.comtatterdemalion@programming.dev to Science Memes@mander.xyzEnglish · 18 days agomessage-square40fedilink
minus-squareAdmiral Patrick@dubvee.orglinkfedilinkEnglisharrow-up1·edit-212 days agoIt’ll give you 1 ~= true or 0 ~= undefined, but I typically use Typescript which prefers actual booleans to boolean-ish
minus-squarejuliebean@lemm.eelinkfedilinkEnglisharrow-up1·12 days agohuh. interesting. i wonder what number it’s actually storing for false then?
It’ll give you 1 ~= true or 0 ~= undefined, but I typically use Typescript which prefers actual booleans to boolean-ish
huh. interesting. i wonder what number it’s actually storing for false then?