Edit Fork Copy function data_get(target, dom) { if(Array.isArray(dom)) { dom = '[\'' + dom.join('\'][\'') + '\']'; } else { dom = '.' + dom; } try { return eval(`target${dom}`); } catch (e) { return undefined; } }