Lines Matching refs:countBy
3628 QUnit.module('lodash.countBy');
3636 var actual = _.countBy(array, Math.floor);
3648 return index ? _.countBy(array, value) : _.countBy(array);
3657 var actual = _.countBy(['one', 'two', 'three'], 'length');
3664 var actual = _.countBy(array, function(n) {
3681 assert.deepEqual(_.countBy(array, 0), { '1': 1, '2': 2 });
3682 assert.deepEqual(_.countBy(array, 1), { 'a': 2, 'b': 1 });
3688 var actual = _.countBy({ 'a': 6.1, 'b': 4.2, 'c': 6.3 }, Math.floor);
3701 var actual = _(array).countBy().map(square).filter(isEven).take().value();
3703 assert.deepEqual(actual, _.take(_.filter(_.map(_.countBy(array), square), isEven)));
6861 'countBy',
6899 'countBy',
12307 QUnit.test('`_.countBy` should use `_.iteratee` internally', function(assert) {
12312 assert.deepEqual(_.countBy(array), { '3': 2, '5': 1 });
15975 _.mixin({ 'a': _.countBy, 'b': _.filter });