setup-maven-cached/node_modules/underscore/amd/pluck.js

11 lines
230 B
JavaScript
Raw Normal View History

2022-06-28 16:39:30 +08:00
define(['./map', './property'], function (map, property) {
// Convenience version of a common use case of `_.map`: fetching a property.
function pluck(obj, key) {
return map(obj, property(key));
}
return pluck;
});