Faster than parseInt

Shuvo - Oct 17 '21 - - Dev Community

The fastest way to convert a string to a number is using the + operator
eg. let num = +"5"

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .