From 1e8ac50ab59a1bb1072d97d11fc271213ba8b749 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Lipi=C5=84ski?= Date: Wed, 22 Feb 2017 22:28:42 +0100 Subject: [PATCH] Missing iteratee call in `countBy` (missed in 5baad4d). --- countBy.js | 1 + 1 file changed, 1 insertion(+) diff --git a/countBy.js b/countBy.js index fb5d44752..f72ece75b 100644 --- a/countBy.js +++ b/countBy.js @@ -22,6 +22,7 @@ const hasOwnProperty = Object.prototype.hasOwnProperty */ function countBy(collection, iteratee) { return reduce(collection, (result, value, key) => { + key = iteratee(value) if (hasOwnProperty.call(result, key)) { ++result[key] } else {