mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 17:07:49 +00:00
Consistent use (always) of parentheses in arrow functions.
This commit is contained in:
@@ -13,7 +13,7 @@ const reApos = /['\u2019]/g
|
||||
* @returns {Function} Returns the new compounder function.
|
||||
*/
|
||||
function createCompounder(callback) {
|
||||
return string => (
|
||||
return (string) => (
|
||||
arrayReduce(words(toString(string).replace(reApos, '')), callback, '')
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user