orhtej2@eviltoast.org to Programmer Humor@programming.devEnglish · 27 days agoPeak code reuseeviltoast.orgimagemessage-square43fedilinkarrow-up1467arrow-down16
arrow-up1461arrow-down1imagePeak code reuseeviltoast.orgorhtej2@eviltoast.org to Programmer Humor@programming.devEnglish · 27 days agomessage-square43fedilink
minus-squarebobo@lemmy.mllinkfedilinkarrow-up1·26 days 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.