MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / lodash_set

Method lodash_set

wxapp/miaoyouHome.js:218–232  ·  view source on GitHub ↗
(t, s, e)

Source from the content-addressed store, hash-verified

216 return o;
217 }
218 lodash_set(t, s, e) {
219 return Object(t) !== t
220 ? t
221 : (Array.isArray(s) || (s = s.toString().match(/[^.[\]]+/g) || []),
222 (s
223 .slice(0, -1)
224 .reduce(
225 (t, e, i) =>
226 Object(t[e]) === t[e]
227 ? t[e]
228 : (t[e] = Math.abs(s[i + 1]) >> 0 == +s[i + 1] ? [] : {}),
229 t
230 )[s[s.length - 1]] = e),
231 t);
232 }
233 getdata(t) {
234 let s = this.getval(t);
235 if (/^@/.test(t)) {

Callers 1

setdataMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected