source:
frontend/node_modules/underscore/amd/pluck.js
| Last change on this file was 9af201e, checked in by , 11 days ago | |
|---|---|
|
|
| File size: 230 bytes | |
| Line | |
|---|---|
| 1 | define(['./map', './property'], function (map, property) { |
| 2 | |
| 3 | // Convenience version of a common use case of `_.map`: fetching a property. |
| 4 | function pluck(obj, key) { |
| 5 | return map(obj, property(key)); |
| 6 | } |
| 7 | |
| 8 | return pluck; |
| 9 | |
| 10 | }); |
Note:
See TracBrowser
for help on using the repository browser.
