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

The name of the function, though, isn’t `isPositiveSafeInteger`; it matches `Number.isInteger` instead.

Or maybe you don’t just want safe integers, maybe you want `x >>> 0 === x`, or `x > 0 && (x | 0) === x`, or…. This is what I meant about JavaScript being confused about the definition of “integer”.



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

Search: