orhtej2@eviltoast.org to Programmer Humor@programming.devEnglish · 8 days agoPeak code reuseeviltoast.orgimagemessage-square29linkfedilinkarrow-up1403arrow-down15
arrow-up1398arrow-down1imagePeak code reuseeviltoast.orgorhtej2@eviltoast.org to Programmer Humor@programming.devEnglish · 8 days agomessage-square29linkfedilink
minus-squarebobo@lemmy.mllinkfedilinkarrow-up1·7 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.