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

11 lines
230 B
JavaScript

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;
});