setup-maven-cached/node_modules/underscore/cjs/pluck.js
2022-06-28 10:39:30 +02:00

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;