tahamajs's picture
download
raw
372 Bytes
define(['./_group', './_has'], function (_group, _has) {
// 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;
});
return countBy;
});

Xet Storage Details

Size:
372 Bytes
·
Xet hash:
7130ade775fdd0da10b9ad00ddef462fff9a84dce7ed6e89fc75d5578c5a282e

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.