mirror of
https://github.com/Azure/setup-helm.git
synced 2026-07-06 00:11:37 +00:00
a517f2ff65
Co-authored-by: taakleton <taakleton@users.noreply.github.com>
11 lines
230 B
JavaScript
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;
|
|
|
|
});
|