From 41e6991d2e93252ee422e72158b66be8fb47558b Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Tue, 10 Jan 2017 21:09:14 -0800 Subject: [PATCH] Use index instead of `charAt`. --- .internal/createCaseFirst.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.internal/createCaseFirst.js b/.internal/createCaseFirst.js index ab4943c0f..33c216b0e 100644 --- a/.internal/createCaseFirst.js +++ b/.internal/createCaseFirst.js @@ -20,7 +20,7 @@ function createCaseFirst(methodName) { const chr = strSymbols ? strSymbols[0] - : string.charAt(0); + : string[0]; const trailing = strSymbols ? castSlice(strSymbols, 1).join('')