MCPcopy Create free account
hub / github.com/Script-Hub-Org/Script-Hub / lodash_get

Method lodash_get

env/env.js:154–159  ·  view source on GitHub ↗
(t, e, s)

Source from the content-addressed store, hash-verified

152 }
153 }
154 lodash_get(t, e, s) {
155 const a = e.replace(/\[(\d+)\]/g, '.$1').split('.')
156 let r = t
157 for (const t of a) if (((r = Object(r)[t]), void 0 === r)) return s
158 return r
159 }
160 lodash_set(t, e, s) {
161 return Object(t) !== t
162 ? t

Callers 1

getdataMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected