mirror of
https://github.com/stCarolas/setup-maven.git
synced 2025-01-04 01:18:10 +00:00
10 lines
238 B
JavaScript
10 lines
238 B
JavaScript
|
var map = require('./map.js');
|
||
|
var property = require('./property.js');
|
||
|
|
||
|
// Convenience version of a common use case of `_.map`: fetching a property.
|
||
|
function pluck(obj, key) {
|
||
|
return map(obj, property(key));
|
||
|
}
|
||
|
|
||
|
module.exports = pluck;
|