Closed Mister-Hope closed 1 year ago
Could you quantify how much performance does it improve?
BTW, how much does it benefit by using
str[0] === '/'
overstr.startsWith('/')
?startsWith
/endsWith
should have better readability.
20%, the latter is much more greater than 20
Any update on this?
Could you quantify how much performance does it improve?
BTW, how much does it benefit by using
str[0] === '/'
overstr.startsWith('/')
?startsWith
/endsWith
should have better readability.