orhtej2@eviltoast.org to Programmer Humor@programming.devEnglish · 29 天前Peak code reuseeviltoast.orgimagemessage-square41linkfedilinkarrow-up1470arrow-down16
arrow-up1464arrow-down1imagePeak code reuseeviltoast.orgorhtej2@eviltoast.org to Programmer Humor@programming.devEnglish · 29 天前message-square41linkfedilink
minus-squarebobo@lemmy.mllinkfedilinkarrow-up1·28 天前Good 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.