orhtej2@eviltoast.org to Programmer Humor@programming.devEnglish · 1 day agoPeak code reuseeviltoast.orgimagemessage-square41fedilinkarrow-up1440arrow-down15
arrow-up1435arrow-down1imagePeak code reuseeviltoast.orgorhtej2@eviltoast.org to Programmer Humor@programming.devEnglish · 1 day agomessage-square41fedilink
minus-squarebobo@lemmy.mllinkfedilinkarrow-up1·4 hours agoGood point, but you can do if === true… and else if === false… But definitely better to throw an error instead of nan.
Good point, but you can do if === true… and else if === false…
But definitely better to throw an error instead of nan.