MCPcopy Create free account
hub / github.com/Semporia/Scripts / lodash_set

Method lodash_set

jd_api_test.js:244–246  ·  view source on GitHub ↗
(t, e, s)

Source from the content-addressed store, hash-verified

242 }
243
244 lodash_set(t, e, s) {
245 return Object(t) !== t ? t : (Array.isArray(e) || (e = e.toString().match(/[^.[\]]+/g) || []), e.slice(0, -1).reduce((t, s, i) => Object(t[s]) === t[s] ? t[s] : t[s] = Math.abs(e[i + 1]) >> 0 == +e[i + 1] ? [] : {}, t)[e[e.length - 1]] = s, t)
246 }
247
248 getdata(t) {
249 let e = this.getval(t);

Callers 1

setdataMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected