mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 00:27:50 +00:00
Remove semicolons.
This commit is contained in:
14
startCase.js
14
startCase.js
@@ -1,5 +1,5 @@
|
||||
import createCompounder from './.internal/createCompounder.js';
|
||||
import upperFirst from './upperFirst.js';
|
||||
import createCompounder from './.internal/createCompounder.js'
|
||||
import upperFirst from './upperFirst.js'
|
||||
|
||||
/**
|
||||
* Converts `string` to
|
||||
@@ -12,17 +12,17 @@ import upperFirst from './upperFirst.js';
|
||||
* @see camelCase, lowerCase, kebabCase, snakeCase, upperCase, upperFirst
|
||||
* @example
|
||||
*
|
||||
* startCase('--foo-bar--');
|
||||
* startCase('--foo-bar--')
|
||||
* // => 'Foo Bar'
|
||||
*
|
||||
* startCase('fooBar');
|
||||
* startCase('fooBar')
|
||||
* // => 'Foo Bar'
|
||||
*
|
||||
* startCase('__FOO_BAR__');
|
||||
* startCase('__FOO_BAR__')
|
||||
* // => 'FOO BAR'
|
||||
*/
|
||||
const startCase = createCompounder((result, word, index) =>
|
||||
result + (index ? ' ' : '') + upperFirst(word)
|
||||
);
|
||||
)
|
||||
|
||||
export default startCase;
|
||||
export default startCase
|
||||
|
||||
Reference in New Issue
Block a user