siriusmart@lemmy.ml to Programmer Humor@lemmy.ml · 9 months agothe hardest exam questionlemmy.mlimagemessage-square155fedilinkarrow-up1742arrow-down123
arrow-up1719arrow-down1imagethe hardest exam questionlemmy.mlsiriusmart@lemmy.ml to Programmer Humor@lemmy.ml · 9 months agomessage-square155fedilink
minus-squareDrusenija@lemmy.worldlinkfedilinkarrow-up1·9 months agoWhat’s even wilder is if you look at the code of that package, all it does is include the is-odd package and then return !is-odd. And the is-odd package isn’t much better, it does some basic checks on the input and then returns n % 2 === 1.
What’s even wilder is if you look at the code of that package, all it does is include the is-odd package and then return !is-odd. And the is-odd package isn’t much better, it does some basic checks on the input and then returns n % 2 === 1.