DEV Community

Discussion on: 1 line of code: How to camelCase a string

Collapse
 
martinkr profile image
Martin Krause

Benchmark
Half the time its the original, the other half the new version for me.

Collapse
 
xr0master profile image
Sergey Khomushin

Thanks. In Chrome, my version is 25% faster. It was obvious, though. Grouping is a heavy operation.

Thread Thread
 
martinkr profile image
Martin Krause

Thank you, I updated the article and the code.