orhtej2@eviltoast.org to Programmer Humor@programming.devEnglish · 2 months agoPeak code reuseeviltoast.orgimagemessage-square37linkfedilinkarrow-up1444
arrow-up1444imagePeak code reuseeviltoast.orgorhtej2@eviltoast.org to Programmer Humor@programming.devEnglish · 2 months agomessage-square37linkfedilink
minus-squarebobo@lemmy.mllinkfedilinkarrow-up1·2 months 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.