mirror of
https://github.com/stCarolas/setup-maven.git
synced 2024-11-27 05:36:09 +08:00
13 lines
253 B
JavaScript
13 lines
253 B
JavaScript
define(function () {
|
|
|
|
// Internal helper to generate a function to obtain property `key` from `obj`.
|
|
function shallowProperty(key) {
|
|
return function(obj) {
|
|
return obj == null ? void 0 : obj[key];
|
|
};
|
|
}
|
|
|
|
return shallowProperty;
|
|
|
|
});
|