Add int() helper instead of parseInt.
parseInt is a good option for string-int conversion, but none for float-int conversion because of performance issue. This is also to make the code clean.
This commit is contained in:
parseInt is a good option for string-int conversion, but none for float-int conversion because of performance issue. This is also to make the code clean.