mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 01:57:50 +00:00
Do not use property shorthand in countBy documentation (#4405)
This commit is contained in:
committed by
John-David Dalton
parent
e2ae5b857c
commit
142cee066d
@@ -23,7 +23,7 @@ const hasOwnProperty = Object.prototype.hasOwnProperty
|
|||||||
* { 'user': 'fred', 'active': false }
|
* { 'user': 'fred', 'active': false }
|
||||||
* ]
|
* ]
|
||||||
*
|
*
|
||||||
* countBy(users, 'active');
|
* countBy(users, value => value.active);
|
||||||
* // => { 'true': 2, 'false': 1 }
|
* // => { 'true': 2, 'false': 1 }
|
||||||
*/
|
*/
|
||||||
function countBy(collection, iteratee) {
|
function countBy(collection, iteratee) {
|
||||||
|
|||||||
Reference in New Issue
Block a user