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