source:
frontend/node_modules/underscore/modules/indexBy.js
| Last change on this file was 9af201e, checked in by , 12 days ago | |
|---|---|
|
|
| File size: 248 bytes | |
| Line | |
|---|---|
| 1 | import group from './_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. |
| 5 | export default group(function(result, value, key) { |
| 6 | result[key] = value; |
| 7 | }); |
Note:
See TracBrowser
for help on using the repository browser.
