← Back to context Comment by augustl 11 years ago That's interesting. JavaScript has enough quirks to warrant an is-positive-integer module. 1 comment augustl Reply plugnburn 11 years ago See: isPositive = (x) => +x === x && x > 0 In which conditions does it return a wrong value? I haven't found any.
plugnburn 11 years ago See: isPositive = (x) => +x === x && x > 0 In which conditions does it return a wrong value? I haven't found any.
See:
In which conditions does it return a wrong value? I haven't found any.