Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> is-even is literally just `(n % 2) === 1`

Pretty sure that tells you if a number is odd. I guess maybe there is a reason these libraries exist.



That was just a typo, I meant the source for is-odd. I copy-pasted it. I use that exact syntax all the time in code, you don't need to be patronizing.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: