mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 23:37:49 +00:00
Remove toString use from createCaseFirst.
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import castSlice from './castSlice.js'
|
||||
import hasUnicode from './hasUnicode.js'
|
||||
import stringToArray from './stringToArray.js'
|
||||
import toString from '../toString.js'
|
||||
|
||||
/**
|
||||
* Creates a function like `lowerFirst`.
|
||||
@@ -12,8 +11,6 @@ import toString from '../toString.js'
|
||||
*/
|
||||
function createCaseFirst(methodName) {
|
||||
return (string) => {
|
||||
string = toString(string)
|
||||
|
||||
const strSymbols = hasUnicode(string)
|
||||
? stringToArray(string)
|
||||
: undefined
|
||||
|
||||
Reference in New Issue
Block a user