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

Method getdata

function/sendNotify.js:2374–2388  ·  view source on GitHub ↗
(t)

Source from the content-addressed store, hash-verified

2372 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);
2373 }
2374 getdata(t) {
2375 let s = this.getval(t);
2376 if (/^@/.test(t)) {
2377 const[, e, i] = /^@(.*?)\.(.*?)$/.exec(t),
2378 o = e ? this.getval(e) : '';
2379 if (o)
2380 try {
2381 const t = JSON.parse(o);
2382 s = t ? this.lodash_get(t, i, '') : s;
2383 } catch (t) {
2384 s = '';
2385 }
2386 }
2387 return s;
2388 }
2389 setdata(t, s) {
2390 let e = !1;
2391 if (/^@/.test(s)) {

Callers 2

GetnickName2Function · 0.45
runScriptMethod · 0.45

Calls 2

getvalMethod · 0.45
lodash_getMethod · 0.45

Tested by

no test coverage detected