DEV Community

Discussion on: You should stop using `parseInt()`

Collapse
 
kigiri profile image
Clément

One thing to note that caugth me by surprise is that Number will parse any falsy value as 0, so undefined, null, false all parse fine and return 0, can be unexpected.