| var castSlice = require('./_castSlice'), |
| hasUnicode = require('./_hasUnicode'), |
| stringToArray = require('./_stringToArray'), |
| toString = require('./toString'); |
| * Creates a function like `_.lowerFirst`. |
| * @param {string} methodName The name of the `String` case method to use. |
| * @returns {Function} Returns the new case function. |
| function createCaseFirst(methodName) { |
| return function(string) { |
| string = toString(string); |
| var strSymbols = hasUnicode(string) |
| var trailing = strSymbols |
| ? castSlice(strSymbols, 1).join('') |
| return chr[methodName]() + trailing; |
| module.exports = createCaseFirst; |