cantstopthesignal@sh.itjust.works to Programmer Humor@lemmy.ml · 8 months agoThe code was very janky, but it workedi.imgflip.comimagemessage-square42fedilinkarrow-up1462arrow-down19
arrow-up1453arrow-down1imageThe code was very janky, but it workedi.imgflip.comcantstopthesignal@sh.itjust.works to Programmer Humor@lemmy.ml · 8 months agomessage-square42fedilink
minus-squarecarpelbridgesyndrome@sh.itjust.workslinkfedilinkEnglisharrow-up6·8 months agoNot a JS dev either but ===. Not really sure what the (+x) is about
minus-squareFiskFisk33@startrek.websitelinkfedilinkarrow-up1·8 months agothe remainder operator should return a number or a NaN right? do we actually need the triple here?
minus-squaremarcos@lemmy.worldlinkfedilinkarrow-up2·edit-28 months agoNot really. But with JS it’s better safe than sorry. The GP’s addition is unnecessary, but I fully support anyone that decides to do it.
Not a JS dev either but
===
.Not really sure what the
(+x)
is aboutthe remainder operator should return a number or a NaN right? do we actually need the triple here?
Not really. But with JS it’s better safe than sorry.
The GP’s addition is unnecessary, but I fully support anyone that decides to do it.
point taken!