Use parens for single params too.

This commit is contained in:
John-David Dalton
2017-02-25 20:22:39 -08:00
parent 2fd70c8eca
commit d1d86811bc

View File

@@ -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