source: frontend/node_modules/underscore/amd/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: 290 bytes
Line 
1define(['./_group'], function (_group) {
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.
5 var indexBy = _group(function(result, value, key) {
6 result[key] = value;
7 });
8
9 return indexBy;
10
11});
Note: See TracBrowser for help on using the repository browser.