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