mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 07:47:49 +00:00
Use index instead of charAt.
This commit is contained in:
@@ -20,7 +20,7 @@ function createCaseFirst(methodName) {
|
||||
|
||||
const chr = strSymbols
|
||||
? strSymbols[0]
|
||||
: string.charAt(0);
|
||||
: string[0];
|
||||
|
||||
const trailing = strSymbols
|
||||
? castSlice(strSymbols, 1).join('')
|
||||
|
||||
Reference in New Issue
Block a user