mirror of
https://github.com/stCarolas/setup-maven.git
synced 2024-11-23 19:46:38 +08:00
7 lines
202 B
JavaScript
7 lines
202 B
JavaScript
|
// Internal helper to generate a function to obtain property `key` from `obj`.
|
||
|
export default function shallowProperty(key) {
|
||
|
return function(obj) {
|
||
|
return obj == null ? void 0 : obj[key];
|
||
|
};
|
||
|
}
|