mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 09:27:49 +00:00
Adjust spacing in template string expressions.
This commit is contained in:
@@ -22,7 +22,7 @@ import words from './words.js'
|
||||
* // => 'FOO BAR'
|
||||
*/
|
||||
const startCase = (string) => (
|
||||
words(`${ string }`.replace(/['\u2019]/g, '')).reduce((result, word, index) => (
|
||||
words(`${string}`.replace(/['\u2019]/g, '')).reduce((result, word, index) => (
|
||||
result + (index ? ' ' : '') + upperFirst(word)
|
||||
), '')
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user