📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-06-29 17:33:31
📂
/ (Root)
/
home
/
orkouolp
/
nodevenv
/
node_js
/
orkofarms.com
/
18
/
lib
/
node_modules
/
underscore
/
cjs
📍 /home/orkouolp/nodevenv/node_js/orkofarms.com/18/lib/node_modules/underscore/cjs
🔄 Refresh
✏️
Editing: countBy.js
Writable
var _group = require('./_group.js'); var _has = require('./_has.js'); // Counts instances of an object that group by a certain criterion. Pass // either a string attribute to count by, or a function that returns the // criterion. var countBy = _group(function(result, value, key) { if (_has(result, key)) result[key]++; else result[key] = 1; }); module.exports = countBy;
💾 Save Changes
❌ Cancel