mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 23:57:49 +00:00
Use parens for single params too.
This commit is contained in:
@@ -28,7 +28,7 @@ function invokeMap(collection, path, args) {
|
||||
const isFunc = typeof path == 'function'
|
||||
const result = isArrayLike(collection) ? Array(collection.length) : []
|
||||
|
||||
baseEach(collection, value => {
|
||||
baseEach(collection, (value) => {
|
||||
result[++index] = isFunc ? path.apply(value, args) : invoke(value, path, args)
|
||||
})
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user