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