siriusmart@lemmy.ml to Programmer Humor@lemmy.ml · 9 months agothe hardest exam questionlemmy.mlimagemessage-square10fedilinkarrow-up112arrow-down10
arrow-up112arrow-down1imagethe hardest exam questionlemmy.mlsiriusmart@lemmy.ml to Programmer Humor@lemmy.ml · 9 months agomessage-square10fedilink
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.