mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 01:47:48 +00:00
Adjust spacing in template string expressions.
This commit is contained in:
@@ -21,7 +21,7 @@ import words from './words.js'
|
||||
* // => 'fooBar'
|
||||
*/
|
||||
const camelCase = (string) => (
|
||||
words(`${ string }`.replace(/['\u2019]/g, '')).reduce((result, word, index) => {
|
||||
words(`${string}`.replace(/['\u2019]/g, '')).reduce((result, word, index) => {
|
||||
word = word.toLowerCase()
|
||||
return result + (index ? capitalize(word) : word)
|
||||
}, '')
|
||||
|
||||
Reference in New Issue
Block a user