From 142cee066d74966091e15ed2ef364a18e8a30b4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luiz=20Am=C3=A9rico?= Date: Thu, 15 Aug 2019 01:22:09 -0300 Subject: [PATCH] Do not use property shorthand in countBy documentation (#4405) --- countBy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/countBy.js b/countBy.js index 65b2d8512..94f45edac 100644 --- a/countBy.js +++ b/countBy.js @@ -23,7 +23,7 @@ const hasOwnProperty = Object.prototype.hasOwnProperty * { 'user': 'fred', 'active': false } * ] * - * countBy(users, 'active'); + * countBy(users, value => value.active); * // => { 'true': 2, 'false': 1 } */ function countBy(collection, iteratee) {