source: frontend/node_modules/underscore/cjs/indexBy.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 279 bytes
Line 
1var _group = require('./_group.js');
2
3// Indexes the object's values by a criterion, similar to `_.groupBy`, but for
4// when you know that your index values will be unique.
5var indexBy = _group(function(result, value, key) {
6 result[key] = value;
7});
8
9module.exports = indexBy;
Note: See TracBrowser for help on using the repository browser.