| var _group = require('./_group.js'); | |
| var _has = require('./_has.js'); | |
| // Groups the object's values by a criterion. Pass either a string attribute | |
| // to group by, or a function that returns the criterion. | |
| var groupBy = _group(function(result, value, key) { | |
| if (_has(result, key)) result[key].push(value); else result[key] = [value]; | |
| }); | |
| module.exports = groupBy; | |
Xet Storage Details
- Size:
- 367 Bytes
- Xet hash:
- 241616b42cc91fba728a0aa488e09f8c981bdb4b7bcd34feba07f2977a43bd95
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.