mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 00:27:50 +00:00
Apply let/const transform.
This commit is contained in:
@@ -14,15 +14,15 @@ function createCaseFirst(methodName) {
|
||||
return string => {
|
||||
string = toString(string);
|
||||
|
||||
var strSymbols = hasUnicode(string)
|
||||
const strSymbols = hasUnicode(string)
|
||||
? stringToArray(string)
|
||||
: undefined;
|
||||
|
||||
var chr = strSymbols
|
||||
const chr = strSymbols
|
||||
? strSymbols[0]
|
||||
: string.charAt(0);
|
||||
|
||||
var trailing = strSymbols
|
||||
const trailing = strSymbols
|
||||
? castSlice(strSymbols, 1).join('')
|
||||
: string.slice(1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user