DEV Community

Discussion on: JavaScript/Typescript Tips compilation 2021🚀

zulvkr profile image
zulvkr • Edited on

I'm still on the edge of converting to parseInt parseFloat sect. But their behavior to convert '23 somestring' to 23 still off putting to me.

Looks like a possible silent failure for edge cases

Edit: I found an actual case,

I am not saying + is better overall, but it has better behavior in this case