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

See:

  isPositive = (x) => +x === x && x > 0
In which conditions does it return a wrong value? I haven't found any.


Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: