From d1d86811bc64829795c915008f9249bc9dcb7071 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sat, 25 Feb 2017 20:22:39 -0800 Subject: [PATCH] Use parens for single params too. --- invokeMap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invokeMap.js b/invokeMap.js index 330b197c1..76b8d65e3 100644 --- a/invokeMap.js +++ b/invokeMap.js @@ -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