Update metadata

This commit is contained in:
Imran Ismail
2019-09-05 12:08:20 +08:00
parent 6e5c237523
commit 56c04146d7
1454 changed files with 204046 additions and 234789 deletions

View File

@@ -3,6 +3,7 @@
Object.defineProperty(exports, '__esModule', {
value: true
});
exports.getPath = getPath;
exports.default = void 0;
function _prettyFormat() {
@@ -92,9 +93,10 @@ const replaceKeyPathWithValue = template => (title, match) => {
})
);
};
/* eslint import/export: 0*/
const getPath = (template, [head, ...tail]) => {
function getPath(template, [head, ...tail]) {
if (!head || !template.hasOwnProperty || !template.hasOwnProperty(head))
return template;
return getPath(template[head], tail);
};
}