Y
Hacker News
new
|
ask
|
show
|
jobs
by
augustl
3742 days ago
That's interesting. JavaScript has enough quirks to warrant an is-positive-integer module.
1 comments
plugnburn
3741 days ago
See:
isPositive = (x) => +x === x && x > 0
In which conditions does it return a wrong value? I haven't found any.
link