Current File : //home/tradevaly/www/node_modules/collect.js/src/methods/countBy.js
'use strict';

module.exports = function countBy(fn = value => value) {
  return new this.constructor(this.items)
    .groupBy(fn)
    .map(value => value.count());
};