MCPcopy
hub / github.com/vuejs/devtools-v6 / get

Method get

packages/shared-utils/src/edit.ts:24–36  ·  view source on GitHub ↗
(object, path)

Source from the content-addressed store, hash-verified

22 }
23
24 get(object, path) {
25 const sections = Array.isArray(path) ? path : path.split('.')
26 for (let i = 0; i < sections.length; i++) {
27 object = object[sections[i]]
28 if (this.isRef(object)) {
29 object = this.getRefValue(object)
30 }
31 if (!object) {
32 return undefined
33 }
34 }
35 return object
36 }
37
38 has(object, path, parent = false) {
39 if (typeof object === 'undefined') {

Callers 15

server.jsFile · 0.80
connectFunction · 0.80
connectBridgeFunction · 0.80
cleanupBufferFunction · 0.80
performanceMarkStartFunction · 0.80
performanceMarkEndFunction · 0.80
getComponentInstanceFunction · 0.80
showScreenshotFunction · 0.80
createAppRecordFunction · 0.80
getAppRecordFunction · 0.80
getBackendFunction · 0.80
sendTimelineEventDataFunction · 0.80

Calls 2

isRefMethod · 0.95
getRefValueMethod · 0.95

Tested by

no test coverage detected