juliancoleman / orchestra

A dependency-free, pure-function String manipulation library
MIT License
1 stars 0 forks source link

Possibly convert #firstCharInSentenceIsLower() to not use Regex #8

Closed juliancoleman closed 5 years ago

juliancoleman commented 5 years ago

I haven't figured out what I want to do, but I may just be able to take the head of a string and get the char code, and find if that char code is between 97 and 122. This is purely for speed performance, but may not offer time optimizations.

juliancoleman commented 5 years ago

https://jsperf.com/first-letter-is-lowercase/1

juliancoleman commented 5 years ago

Not even using this, so...