mirror of
https://github.com/stCarolas/setup-maven.git
synced 2024-11-26 21:26:07 +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];
|
|
};
|
|
}
|