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

Method lodash_set

function/sendNotify.js:2371–2373  ·  view source on GitHub ↗
(t, s, e)

Source from the content-addressed store, hash-verified

2369 return o;
2370 }
2371 lodash_set(t, s, e) {
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)) {

Callers 1

setdataMethod · 0.45

Calls 1

matchMethod · 0.45

Tested by

no test coverage detected