mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 08:07:50 +00:00
Remove semicolons.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import castSlice from './castSlice.js';
|
||||
import hasUnicode from './hasUnicode.js';
|
||||
import stringToArray from './stringToArray.js';
|
||||
import toString from '../toString.js';
|
||||
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,22 +12,22 @@ import toString from '../toString.js';
|
||||
*/
|
||||
function createCaseFirst(methodName) {
|
||||
return string => {
|
||||
string = toString(string);
|
||||
string = toString(string)
|
||||
|
||||
const strSymbols = hasUnicode(string)
|
||||
? stringToArray(string)
|
||||
: undefined;
|
||||
: undefined
|
||||
|
||||
const chr = strSymbols
|
||||
? strSymbols[0]
|
||||
: string[0];
|
||||
: string[0]
|
||||
|
||||
const trailing = strSymbols
|
||||
? castSlice(strSymbols, 1).join('')
|
||||
: string.slice(1);
|
||||
: string.slice(1)
|
||||
|
||||
return chr[methodName]() + trailing;
|
||||
};
|
||||
return chr[methodName]() + trailing
|
||||
}
|
||||
}
|
||||
|
||||
export default createCaseFirst;
|
||||
export default createCaseFirst
|
||||
|
||||
Reference in New Issue
Block a user