Add _.countBy and related unit tests, benchmarks, and documentation.

Former-commit-id: 915eaf414883a1dc344a558b08c7a1337ab5a225
This commit is contained in:
John-David Dalton
2012-07-19 01:29:51 -04:00
parent 7487497d1f
commit 9848ffb77f
7 changed files with 332 additions and 207 deletions

View File

@@ -153,6 +153,7 @@
'compact': [],
'compose': [],
'contains': [],
'countBy': [],
'debounce': [],
'defaults': [],
'defer': [],
@@ -260,10 +261,12 @@
allMethods = Object.keys(dependencyMap);
var underscoreMethods = lodash.without.apply(lodash, [allMethods].concat([
'countBy',
'drop',
'forIn',
'forOwn',
'partial'
'partial',
'zipObject'
]));
/** Used to specify whether filtering is for exclusion or inclusion */