mirror of
https://github.com/zhigang1992/probot.git
synced 2026-06-16 11:50:10 +08:00
6 lines
146 B
JavaScript
6 lines
146 B
JavaScript
module.exports = (context, name) => {
|
|
return name.reduce((object, attr) => {
|
|
return object ? object[attr] : null;
|
|
}, context.payload);
|
|
};
|