Faster than parseInt

Fastest way to convert a string to number in JS

·

1 min read

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