DEV Community

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

Collapse
 
maxziebell profile image
Max Ziebell

This is so true. Instead of pushing back just add a math.round to the Number() and the readability suffers and probably the performance too. I agree, the suggested „optimization“ is not worth implementing and worth thinking about in most real world use cases.