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