3 ms·
That's interesting. JavaScript has enough quirks to warrant an is-positive-integer module.
by augustl 11y ago
That's interesting. JavaScript has enough quirks to warrant an is-positive-integer module.
- plugnburn 11y agoSee: isPositive = (x) => +x === x && x > 0 In which conditions does it return a wrong value? I haven't found any.