MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / get

Function get

lib/plugin/expose.js:126–132  ·  view source on GitHub ↗
(_, prop)

Source from the content-addressed store, hash-verified

124 const resolve = () => Container.helpers(helperName)?.[property]
125 return new Proxy(function () {}, {
126 get(_, prop) {
127 const target = resolve()
128 if (target == null) return undefined
129 const value = target[prop]
130 if (typeof value === 'function') return value.bind(target)
131 return value
132 },
133 has(_, prop) {
134 const target = resolve()
135 return target != null && prop in target

Callers

nothing calls this directly

Calls 1

resolveFunction · 0.85

Tested by

no test coverage detected