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