varcastSlice=require('./_castSlice'),hasUnicode=require('./_hasUnicode'),stringToArray=require('./_stringToArray'),toString=require('./toString');/** * Creates a function like `_.lowerFirst`. * * @private * @param {string} methodName The name of the `String` case method to use. * @returns {Function} Returns the new case function. */functioncreateCaseFirst(methodName){returnfunction(string){string=toString(string);varstrSymbols=hasUnicode(string)?stringToArray(string):undefined;varchr=strSymbols?strSymbols[0]:string.charAt(0);vartrailing=strSymbols?castSlice(strSymbols,1).join(''):string.slice(1);returnchr[methodName]()+trailing;};}module.exports=createCaseFirst;