Do not use property shorthand in countBy documentation (#4405)

This commit is contained in:
Luiz Américo
2019-08-15 01:22:09 -03:00
committed by John-David Dalton
parent e2ae5b857c
commit 142cee066d

View File

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