mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 18:37:50 +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 isFunc = typeof path == 'function'
|
||||||
const result = isArrayLike(collection) ? Array(collection.length) : []
|
const result = isArrayLike(collection) ? Array(collection.length) : []
|
||||||
|
|
||||||
baseEach(collection, value => {
|
baseEach(collection, (value) => {
|
||||||
result[++index] = isFunc ? path.apply(value, args) : invoke(value, path, args)
|
result[++index] = isFunc ? path.apply(value, args) : invoke(value, path, args)
|
||||||
})
|
})
|
||||||
return result
|
return result
|
||||||
|
|||||||
Reference in New Issue
Block a user