https://www.npmjs.com/package/is-odd-or-even
that of course depends on is-odd and is-even.
Reply on news.ycombinator.com