Performance optimisations
- Add call to
String.charAt()
. - Replace
String.substring()
calls withString.slice()
. This shows a minor performance boost with v8. - Remove unecessary
String.toUpperCase()
call.
String.charAt()
.String.substring()
calls with String.slice()
. This shows a minor performance boost with v8.String.toUpperCase()
call.