github-actions[bot] a0f00e5017
Add node modules and new code for release (#168)
Co-authored-by: OliverMKing <OliverMKing@users.noreply.github.com>
2022-02-02 10:11:19 -05: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;