Hacker News new | ask | show | jobs
by kentor 4635 days ago

    n % 1 == 0
1 comments

Tried that first, but that will fail on the "false" case.
It needs a triple-equals, because false == 0, but false !== 0