phuocng opened this issue 4 years ago · 1 comments
Instead of using the Number() constructor to convert a string to number, you can use the + operator:
+'010'; // 10 +'2e1'; // 20 +'0xF'; // 15
Done: https://getfrontend.tips/convert-string-to-number.html