Use index instead of charAt.

This commit is contained in:
John-David Dalton
2017-01-10 21:09:14 -08:00
parent 3b990b7916
commit 41e6991d2e

View File

@@ -20,7 +20,7 @@ function createCaseFirst(methodName) {
const chr = strSymbols
? strSymbols[0]
: string.charAt(0);
: string[0];
const trailing = strSymbols
? castSlice(strSymbols, 1).join('')