MCPcopy Create free account
hub / github.com/6dylan6/jdm / getdata

Method getdata

sendNotify.js:2923–2937  ·  view source on GitHub ↗
(t)

Source from the content-addressed store, hash-verified

2921 return Object(t) !== t ? t : (Array.isArray(s) || (s = s.toString().match(/[^.[\]]+/g) || []), (s.slice(0, -1).reduce((t, e, i) => (Object(t[e]) === t[e] ? t[e] : (t[e] = Math.abs(s[i + 1]) >> 0 == +s[i + 1] ? [] : {})), t)[s[s.length - 1]] = e), t);
2922 }
2923 getdata(t) {
2924 let s = this.getval(t);
2925 if (/^@/.test(t)) {
2926 const[, e, i] = /^@(.*?)\.(.*?)$/.exec(t),
2927 o = e ? this.getval(e) : '';
2928 if (o)
2929 try {
2930 const t = JSON.parse(o);
2931 s = t ? this.lodash_get(t, i, '') : s;
2932 } catch (t) {
2933 s = '';
2934 }
2935 }
2936 return s;
2937 }
2938 setdata(t, s) {
2939 let e = !1;
2940 if (/^@/.test(s)) {

Callers 2

GetnickNameFunction · 0.45
runScriptMethod · 0.45

Calls 2

getvalMethod · 0.45
lodash_getMethod · 0.45

Tested by

no test coverage detected